зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1479076 - Add LazyScript::maybeCompartment. r=jonco
This commit is contained in:
Родитель
f8c5ea739f
Коммит
4a61b87b37
|
@ -0,0 +1,6 @@
|
|||
fullcompartmentchecks(true);
|
||||
var dbg = new Debugger();
|
||||
var g = newGlobal();
|
||||
g.eval("function f(){}");
|
||||
dbg.addDebuggee(g);
|
||||
dbg.findScripts();
|
|
@ -2351,6 +2351,7 @@ class LazyScript : public gc::TenuredCell
|
|||
}
|
||||
|
||||
JS::Compartment* compartment() const;
|
||||
JS::Compartment* maybeCompartment() const { return compartment(); }
|
||||
Realm* realm() const;
|
||||
|
||||
void initScript(JSScript* script);
|
||||
|
|
Загрузка…
Ссылка в новой задаче