Last active
August 29, 2015 14:04
-
-
Save retrohacker/b0a0edad0c0baa7bdd9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function oops(y) { | |
return [arguments, function () {return y}] | |
}; | |
vals=oops(2); | |
y1=vals[1](); | |
vals[0][0]=3; // change "y" | |
y2=vals[1](); | |
// varies depending on strict mode or not | |
[y1,y2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment