mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 77283cc3e7e2 (bug 1165486)
This commit is contained in:
parent
de5d5aa895
commit
7778d68617
@ -634,15 +634,6 @@ FunctionBox::FunctionBox(ExclusiveContext* cx, ObjectBox* traceListHead, JSFunct
|
||||
FunctionBox* parent = outerpc->sc->asFunctionBox();
|
||||
if (parent && parent->inWith)
|
||||
inWith = true;
|
||||
} else {
|
||||
// This is like the above case, but when inside eval.
|
||||
//
|
||||
// For example:
|
||||
//
|
||||
// with(o) { eval("(function() { g(); })();"); }
|
||||
//
|
||||
// In this case, the static scope chain tells us the presence of with.
|
||||
inWith = outerpc->sc->asGlobalSharedContext()->inWith();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -280,14 +280,6 @@ class GlobalSharedContext : public SharedContext
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool inWith() const {
|
||||
for (StaticScopeIter<CanGC> it(context, topStaticScope_); !it.done(); it++) {
|
||||
if (it.type() == StaticScopeIter<CanGC>::With)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
class FunctionBox : public ObjectBox, public SharedContext
|
||||
|
Loading…
Reference in New Issue
Block a user