Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kypflug/2d4aa9c0bb03345721ce to your computer and use it in GitHub Desktop.
Save kypflug/2d4aa9c0bb03345721ce to your computer and use it in GitHub Desktop.
Complex default parameter scope that Chakra doesn’t yet handle
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