Created
May 2, 2016 13:33
-
-
Save bmeck/e54d607a4b0874e8dfca7af2a132b9c2 to your computer and use it in GitHub Desktop.
This file contains 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
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