From 1a21b526928b0c5815aa3910499ac980714fa25b Mon Sep 17 00:00:00 2001 From: Moonchild Date: Thu, 3 Dec 2020 13:56:36 +0000 Subject: Issue #1624 - Make ion inlining optimizations a pref. This also adds it to JS_SetGlobalJitCompilerOption() --- dom/base/nsJSUtils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dom/base') diff --git a/dom/base/nsJSUtils.cpp b/dom/base/nsJSUtils.cpp index d50a2adbd5..1b667326b0 100644 --- a/dom/base/nsJSUtils.cpp +++ b/dom/base/nsJSUtils.cpp @@ -299,10 +299,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; } -- cgit v1.2.3