summaryrefslogtreecommitdiffstats
path: root/js/src/jsapi.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-29 22:19:56 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:18 -0400
commit52e22e231b065cc7d5975d5f6f8a9231c4f18f6e (patch)
treeb20f9307f025b5d6d55603e4f681b6f89610e02b /js/src/jsapi.cpp
parentaf32c8553e54455ef8cbfe70a13f79f84c2163a4 (diff)
downloadUXP-52e22e231b065cc7d5975d5f6f8a9231c4f18f6e.tar
UXP-52e22e231b065cc7d5975d5f6f8a9231c4f18f6e.tar.gz
UXP-52e22e231b065cc7d5975d5f6f8a9231c4f18f6e.tar.lz
UXP-52e22e231b065cc7d5975d5f6f8a9231c4f18f6e.tar.xz
UXP-52e22e231b065cc7d5975d5f6f8a9231c4f18f6e.zip
1323324 - Part 1: Make Promise::unforgeable{Resolve,Reject} spec-compliant.
Diffstat (limited to 'js/src/jsapi.cpp')
-rw-r--r--js/src/jsapi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp
index 9ee29ffe4..ac7b78581 100644
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -4884,7 +4884,7 @@ JS::CallOriginalPromiseResolve(JSContext* cx, JS::HandleValue resolutionValue)
assertSameCompartment(cx, resolutionValue);
RootedObject promise(cx, PromiseObject::unforgeableResolve(cx, resolutionValue));
- MOZ_ASSERT_IF(promise, promise->is<PromiseObject>());
+ MOZ_ASSERT_IF(promise, CheckedUnwrap(promise)->is<PromiseObject>());
return promise;
}
@@ -4896,7 +4896,7 @@ JS::CallOriginalPromiseReject(JSContext* cx, JS::HandleValue rejectionValue)
assertSameCompartment(cx, rejectionValue);
RootedObject promise(cx, PromiseObject::unforgeableReject(cx, rejectionValue));
- MOZ_ASSERT_IF(promise, promise->is<PromiseObject>());
+ MOZ_ASSERT_IF(promise, CheckedUnwrap(promise)->is<PromiseObject>());
return promise;
}