mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 773927 - Propagate closed-ness in CompExprTransplanter (r=dvander)
--HG-- extra : rebase_source : 85f484b705372b380832d94172024b0da20f19cf
This commit is contained in:
parent
209edc9144
commit
08a191c58f
@ -5191,6 +5191,8 @@ CompExprTransplanter::transplant(ParseNode *pn)
|
||||
*pnup = NULL;
|
||||
if (!tc->lexdeps->put(atom, dn2))
|
||||
return false;
|
||||
if (dn->isClosed())
|
||||
dn2->pn_dflags |= PND_CLOSED;
|
||||
} else if (dn->isPlaceholder()) {
|
||||
/*
|
||||
* The variable first occurs free in the 'yield' expression;
|
||||
|
6
js/src/jit-test/tests/basic/testBug773927.js
Normal file
6
js/src/jit-test/tests/basic/testBug773927.js
Normal file
@ -0,0 +1,6 @@
|
||||
function outer() {
|
||||
(function() {x})
|
||||
assertEq(((function() {return x}) for (x in [42])).next()(), "0");
|
||||
var x;
|
||||
}
|
||||
outer();
|
Loading…
Reference in New Issue
Block a user