diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-29 22:19:56 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:18 -0400 |
commit | 52e22e231b065cc7d5975d5f6f8a9231c4f18f6e (patch) | |
tree | b20f9307f025b5d6d55603e4f681b6f89610e02b /js/src/jsapi.cpp | |
parent | af32c8553e54455ef8cbfe70a13f79f84c2163a4 (diff) | |
download | uxp-52e22e231b065cc7d5975d5f6f8a9231c4f18f6e.tar.gz |
1323324 - Part 1: Make Promise::unforgeable{Resolve,Reject} spec-compliant.
Diffstat (limited to 'js/src/jsapi.cpp')
-rw-r--r-- | js/src/jsapi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index 9ee29ffe42..ac7b78581c 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; } |