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:
Boris Zbarsky
2015-03-14 01:36:16 -04:00
parent 081c4e9bd1
commit 7f7b5b4fdc
15 changed files with 81 additions and 48 deletions

View File

@@ -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;
}