nsresult nsJSUtils::EvaluateString(JSContext* aCx, const nsAString& aScript, JS::Handle<JSObject*> aEvaluationGlobal, JS::CompileOptions& aCompileOptions) { EvaluateOptions options(aCx); aCompileOptions.setNoScriptRval(true); JS::RootedValue unused(aCx); return EvaluateString(aCx, aScript, aEvaluationGlobal, aCompileOptions, options, &unused); }
nsresult nsJSUtils::EvaluateString(JSContext* aCx, JS::SourceBufferHolder& aSrcBuf, JS::Handle<JSObject*> aEvaluationGlobal, JS::CompileOptions& aCompileOptions, void **aOffThreadToken) { EvaluateOptions options(aCx); aCompileOptions.setNoScriptRval(true); JS::RootedValue unused(aCx); return EvaluateString(aCx, aSrcBuf, aEvaluationGlobal, aCompileOptions, options, &unused, aOffThreadToken); }