Backed out changeset 4ee96b33d289, r=wrongAuthor

This commit is contained in:
Gary Kwong 2012-07-23 14:00:36 -07:00
parent 9c56bfaed4
commit 75fe905ce4
2 changed files with 4 additions and 8 deletions

View File

@ -1132,8 +1132,11 @@ LeaveFunction(ParseNode *fn, Parser *parser, PropertyName *funName = NULL,
* by eval and function statements (which both flag the function as * by eval and function statements (which both flag the function as
* having an extensible scope) or any enclosing 'with'. * having an extensible scope) or any enclosing 'with'.
*/ */
if (funtc->sc->funHasExtensibleScope() || tc->innermostWith) if (funtc->sc->funHasExtensibleScope() ||
(outer_dn && tc->innermostWith &&
outer_dn->pn_pos < tc->innermostWith->pn_pos)) {
DeoptimizeUsesWithin(dn, fn->pn_pos); DeoptimizeUsesWithin(dn, fn->pn_pos);
}
if (!outer_dn) { if (!outer_dn) {
AtomDefnAddPtr p = tc->lexdeps->lookupForAdd(atom); AtomDefnAddPtr p = tc->lexdeps->lookupForAdd(atom);

View File

@ -1,7 +0,0 @@
(function() {
let(a, b, c) {
((function() {
with({}) let(b) { ((function() { c = 0 })()) }
})())
}
})()