summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-12-03 13:56:36 +0000
committerMoonchild <moonchild@palemoon.org>2020-12-13 18:13:03 +0000
commitbcb46bf65e5d4de038ecc052fe160b1910c1d307 (patch)
treeb2d2f21d2409761ab54690480a9c7b582de3b871 /dom
parent176f4fe20686a34e315b3b512330e1a310023854 (diff)
downloaduxp-bcb46bf65e5d4de038ecc052fe160b1910c1d307.tar.gz
Issue #1624 - Make ion inlining optimizations a pref.
This also adds it to JS_SetGlobalJitCompilerOption()
Diffstat (limited to 'dom')
-rw-r--r--dom/base/nsJSUtils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/dom/base/nsJSUtils.cpp b/dom/base/nsJSUtils.cpp
index 2e6e345a32..bc82539300 100644
--- a/dom/base/nsJSUtils.cpp
+++ b/dom/base/nsJSUtils.cpp
@@ -298,10 +298,11 @@ nsJSUtils::CompileModule(JSContext* aCx,
NS_ENSURE_TRUE(xpc::Scriptability::Get(aEvaluationGlobal).Allowed(), NS_OK);
- if (!JS::CompileModule(aCx, aCompileOptions, aSrcBuf, aModule)) {
+ bool compileResult = JS::CompileModule(aCx, aCompileOptions, aSrcBuf, aModule);
+
+ if (!compileResult) {
return NS_ERROR_FAILURE;
}
-
return NS_OK;
}