diff options
author | Moonchild <moonchild@palemoon.org> | 2020-12-15 15:09:30 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-12-15 15:09:30 +0000 |
commit | dabdec3b3ae9cd920e9fe75622a10ce290552941 (patch) | |
tree | 4d462fe7a5f314369f373f6a42214bc9c0efbfcb /dom/base/nsJSUtils.cpp | |
parent | 5165ed02285315cc0bed7977c7bac6d0a90ca43c (diff) | |
parent | cd17592001225e2d988c3aca9bd700de3c8ce4a3 (diff) | |
download | UXP-dabdec3b3ae9cd920e9fe75622a10ce290552941.tar UXP-dabdec3b3ae9cd920e9fe75622a10ce290552941.tar.gz UXP-dabdec3b3ae9cd920e9fe75622a10ce290552941.tar.lz UXP-dabdec3b3ae9cd920e9fe75622a10ce290552941.tar.xz UXP-dabdec3b3ae9cd920e9fe75622a10ce290552941.zip |
Merge branch 'redwood' into releaseRC_20201215
Diffstat (limited to 'dom/base/nsJSUtils.cpp')
-rw-r--r-- | dom/base/nsJSUtils.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dom/base/nsJSUtils.cpp b/dom/base/nsJSUtils.cpp index 2e6e345a3..bc8253930 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; } |