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/f5406f22ea84070495da to your computer and use it in GitHub Desktop.
Save kypflug/f5406f22ea84070495da to your computer and use it in GitHub Desktop.
Complex default parameter scope case Chakra handles properly
function fn() { return "outside" }
function outer(a = fn()) {
function fn() { return "inside" };
return fn();
}
outer(); // "outside"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment