Bug 1097987 part 7. Require callers of JS::Evaluate to either use the global as the scope or pass in an explicit scopechain. r=waldo
This commit is contained in:
@@ -769,7 +769,7 @@ ScriptExecutorRunnable::WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate)
|
||||
loadInfo.mScriptTextLength = 0;
|
||||
|
||||
JS::Rooted<JS::Value> unused(aCx);
|
||||
if (!JS::Evaluate(aCx, global, options, srcBuf, &unused)) {
|
||||
if (!JS::Evaluate(aCx, options, srcBuf, &unused)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user