mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-30 19:17:31 +09:00
Issue #1442 & #1691 Follow-up - Part 22 - Changes that came with Dynamic Module Import. At the time we did not have ReadableStreams in our tree so these changes were left out. https://bugzilla.mozilla.org/show_bug.cgi?id=1499140 Implement support for dynamic module import in the interpreter.
This commit is contained in:
parent
375d7cf3b2
commit
41409ab613
1 changed files with 1 additions and 10 deletions
|
|
@ -284,15 +284,6 @@ ReportArgTypeError(JSContext* cx, const char* funName, const char* expectedType,
|
||||||
funName, expectedType, bytes.get());
|
funName, expectedType, bytes.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
static MOZ_MUST_USE bool
|
|
||||||
RejectWithPendingError(JSContext* cx, Handle<PromiseObject*> promise) {
|
|
||||||
// Not much we can do about uncatchable exceptions, just bail.
|
|
||||||
RootedValue exn(cx);
|
|
||||||
if (!GetAndClearException(cx, &exn))
|
|
||||||
return false;
|
|
||||||
return PromiseObject::reject(cx, promise, exn);
|
|
||||||
}
|
|
||||||
|
|
||||||
static MOZ_MUST_USE bool
|
static MOZ_MUST_USE bool
|
||||||
ReturnPromiseRejectedWithPendingError(JSContext* cx, const CallArgs& args)
|
ReturnPromiseRejectedWithPendingError(JSContext* cx, const CallArgs& args)
|
||||||
{
|
{
|
||||||
|
|
@ -1183,7 +1174,7 @@ ReadableStreamTee_Cancel(JSContext* cx, Handle<TeeState*> teeState,
|
||||||
// Step b: Let cancelResult be ! ReadableStreamCancel(stream, compositeReason).
|
// Step b: Let cancelResult be ! ReadableStreamCancel(stream, compositeReason).
|
||||||
RootedObject cancelResult(cx, ReadableStream::cancel(cx, stream, compositeReasonVal));
|
RootedObject cancelResult(cx, ReadableStream::cancel(cx, stream, compositeReasonVal));
|
||||||
if (!cancelResult) {
|
if (!cancelResult) {
|
||||||
if (!RejectWithPendingError(cx, promise))
|
if (!RejectPromiseWithPendingError(cx, promise))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
} else {
|
} else {
|
||||||
// Step c: Resolve teeState.[[promise]] with cancelResult.
|
// Step c: Resolve teeState.[[promise]] with cancelResult.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue