Skip to content

Instantly share code, notes, and snippets.

@bmeck
Created May 2, 2016 13:33
Show Gist options
  • Save bmeck/e54d607a4b0874e8dfca7af2a132b9c2 to your computer and use it in GitHub Desktop.
Save bmeck/e54d607a4b0874e8dfca7af2a132b9c2 to your computer and use it in GitHub Desktop.
a = [];
// issues more common
;a[0] = (function(){return this})();
;a[1] = (function(a){a='shared';return arguments;}('isolated');
;a[2] = (function () {return typeof this;}).call(1);
// issues less common
var scope = 'global';
;a[3] = (function(scope) {return eval('scope')})();
;a[4] = eval('var am_i_global = 0.5'), global.am_i_global;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment