Created
July 11, 2017 23:17
-
-
Save gskachkov/cc31a1d115651fc404f18bc233048eed to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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