Skip to content

Instantly share code, notes, and snippets.

@jdalton
Created September 25, 2014 20:32
Show Gist options
  • Save jdalton/2f69accc01d7f5b750de to your computer and use it in GitHub Desktop.
Save jdalton/2f69accc01d7f5b750de to your computer and use it in GitHub Desktop.
/* ORIGINAL CODE */
function increment(n) {
o.x += n;
}
var o = {
_x: 0,
get x() {
return this._x;
},
set x(n) {
this._x = n;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment