Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created December 7, 2016 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debugmodedotnet/863736a45b5fff09cbddfaa14a020af0 to your computer and use it in GitHub Desktop.
Save debugmodedotnet/863736a45b5fff09cbddfaa14a020af0 to your computer and use it in GitHub Desktop.
Object.defineProperty(typeof global === "object" ? global : window,
"foo",
{
value: 10000,
enumerable: true,
configurable: true,
writable: false
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment