Skip to content

Instantly share code, notes, and snippets.

@gskachkov
Created July 11, 2017 23:17
Show Gist options
  • Save gskachkov/cc31a1d115651fc404f18bc233048eed to your computer and use it in GitHub Desktop.
Save gskachkov/cc31a1d115651fc404f18bc233048eed to your computer and use it in GitHub Desktop.
function foo () {
try {
throw new Error('Error');
} catch (boo) {
eval('{ function boo() {} }');
print(boo); // should be Error
}
print(boo); // should be function boo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment