Created
November 2, 2017 17:25
-
-
Save syg/26fa875961db7a1734bc2878e12620a5 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
pikashu ~/moz/central/js/src/Debug master | |
% cat test.js | |
var a = 'a'; | |
var b = 'b'; | |
function f(c = ({[eval("var global='g'")]: a}, | |
{[eval("print(global); global")]: b})) | |
{ | |
} | |
f(); | |
pikashu ~/moz/central/js/src/Debug master | |
% dist/bin/js test.js | |
g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment