gecko-dev/js
Jim Blandy d19e022681 Bug 553778: Don't orphan placeholder definition nodes when a real definition is found. r=brendan
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.
2010-11-10 13:18:15 -08:00
..
ipc Bug 562424: Switch IPDL interfaces to infallible TArray. r=bent a=blocking 2010-11-08 20:49:00 -06:00
jetpack Bug 562424: Switch IPDL interfaces to infallible TArray. r=bent a=blocking 2010-11-08 20:49:00 -06:00
jsd Bug 609141 - Compartments mismatch in jsdScript::GetFunctionSource. r=sayrer 2010-11-03 18:04:22 -07:00
src Bug 553778: Don't orphan placeholder definition nodes when a real definition is found. r=brendan 2010-11-10 13:18:15 -08:00
landbranch.pl