mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Backed out changeset 4ee96b33d289, r=wrongAuthor
This commit is contained in:
parent
e0de3d8739
commit
3d4182f4e1
@ -1132,8 +1132,11 @@ LeaveFunction(ParseNode *fn, Parser *parser, PropertyName *funName = NULL,
|
||||
* by eval and function statements (which both flag the function as
|
||||
* 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);
|
||||
}
|
||||
|
||||
if (!outer_dn) {
|
||||
AtomDefnAddPtr p = tc->lexdeps->lookupForAdd(atom);
|
||||
|
@ -1,7 +0,0 @@
|
||||
(function() {
|
||||
let(a, b, c) {
|
||||
((function() {
|
||||
with({}) let(b) { ((function() { c = 0 })()) }
|
||||
})())
|
||||
}
|
||||
})()
|
Loading…
Reference in New Issue
Block a user