mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
d19e022681
When we incorporate an inner function's lexdeps into our own lexdeps and decls tables, always create a fresh definition node for an identifier we don't have an entry for yet, and turn the inner definition node into a use of that definition, to ensure that references to those definitions from TOK_UPVARS nodes properly resolve to the outer definitions that capture them. This patch also changes MakePlaceholder to initialize the new node's type and op. Normally, JSParseNode::create initializes them from the current token, but that creates a fragile dependency of placeholder construction on lexing state, and is not actually what two out of (now) three call sites want. |
||
---|---|---|
.. | ||
ipc | ||
jetpack | ||
jsd | ||
src | ||
landbranch.pl |