Skip to content

Instantly share code, notes, and snippets.

@syg
Created November 2, 2017 17:25
Show Gist options
  • Save syg/26fa875961db7a1734bc2878e12620a5 to your computer and use it in GitHub Desktop.
Save syg/26fa875961db7a1734bc2878e12620a5 to your computer and use it in GitHub Desktop.
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