Skip to content

Instantly share code, notes, and snippets.

@retrohacker
Last active August 29, 2015 14:04
Show Gist options
  • Save retrohacker/b0a0edad0c0baa7bdd9f to your computer and use it in GitHub Desktop.
Save retrohacker/b0a0edad0c0baa7bdd9f to your computer and use it in GitHub Desktop.
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