mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 4ee96b33d289, r=wrongAuthor
This commit is contained in:
parent
9c56bfaed4
commit
75fe905ce4
@ -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);
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
(function() {
|
|
||||||
let(a, b, c) {
|
|
||||||
((function() {
|
|
||||||
with({}) let(b) { ((function() { c = 0 })()) }
|
|
||||||
})())
|
|
||||||
}
|
|
||||||
})()
|
|
Loading…
Reference in New Issue
Block a user