diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-08 11:00:27 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-08 11:05:05 +0000 |
commit | d49fb8a6919dfa446951bf83e14939ff2fc95db1 (patch) | |
tree | e14a97c8d906bdebbab7b6cf3a7ee057ebdbed9a /js | |
parent | 71b988d1b43333431c4a087671c35486ac7ad586 (diff) | |
download | UXP-d49fb8a6919dfa446951bf83e14939ff2fc95db1.tar UXP-d49fb8a6919dfa446951bf83e14939ff2fc95db1.tar.gz UXP-d49fb8a6919dfa446951bf83e14939ff2fc95db1.tar.lz UXP-d49fb8a6919dfa446951bf83e14939ff2fc95db1.tar.xz UXP-d49fb8a6919dfa446951bf83e14939ff2fc95db1.zip |
Issue #618 - Clear the module map when changing a Document's global and add
release build assertions for mismatching compartments.
Diffstat (limited to 'js')
-rw-r--r-- | js/src/jsapi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index 69a3ba2ac..c0f0e61cc 100644 --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -4708,7 +4708,7 @@ JS::ModuleInstantiate(JSContext* cx, JS::HandleObject moduleArg) { AssertHeapIsIdle(cx); CHECK_REQUEST(cx); - assertSameCompartment(cx, moduleArg); + releaseAssertSameCompartment(cx, moduleArg); return ModuleObject::Instantiate(cx, moduleArg.as<ModuleObject>()); } @@ -4717,7 +4717,7 @@ JS::ModuleEvaluate(JSContext* cx, JS::HandleObject moduleArg) { AssertHeapIsIdle(cx); CHECK_REQUEST(cx); - assertSameCompartment(cx, moduleArg); + releaseAssertSameCompartment(cx, moduleArg); return ModuleObject::Evaluate(cx, moduleArg.as<ModuleObject>()); } @@ -6204,7 +6204,7 @@ JS_SetPendingException(JSContext* cx, HandleValue value) { AssertHeapIsIdle(cx); CHECK_REQUEST(cx); - assertSameCompartment(cx, value); + releaseAssertSameCompartment(cx, value); cx->setPendingException(value); } |