Last active
August 29, 2015 14:21
-
-
Save kypflug/2d4aa9c0bb03345721ce to your computer and use it in GitHub Desktop.
Complex default parameter scope that Chakra doesn’t yet handle
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
let x = "outside"; | |
function outer(a = () => eval("x")) { | |
let x = "inside"; | |
return a(); | |
} | |
outer(); // "inside", should be "outside" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment