mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Merge m-c to autoland. a=merge
This commit is contained in:
commit
3078aab482
@ -211,9 +211,11 @@ EvalScript(JSContext* cx,
|
||||
// NOTE: If loadScope is already a shared-global JSM, we can't
|
||||
// determine which JSM the target belongs to and have to assume it
|
||||
// is in our JSM.
|
||||
#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||
JSObject* targetGlobal = js::GetGlobalForObjectCrossCompartment(targetObj);
|
||||
MOZ_DIAGNOSTIC_ASSERT(!mozJSComponentLoader::Get()->IsLoaderGlobal(targetGlobal),
|
||||
"Don't load subscript into target in a shared-global JSM");
|
||||
#endif
|
||||
if (!JS::CloneAndExecuteScript(cx, envChain, script, retval)) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user