icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -79,6 +79,16 @@ JSObject* WritableStream::WrapObject(JSContext* aCx,
|
|||
return WritableStream_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void WritableStream::GetStoredError(JSContext* aCx,
|
||||
JS::MutableHandle<JS::Value> aStoredError,
|
||||
ErrorResult& aRv) const {
|
||||
aStoredError.set(mStoredError);
|
||||
if (!JS_WrapValue(aCx, aStoredError)) {
|
||||
aStoredError.setUndefined();
|
||||
aRv.StealExceptionFromJSContext(aCx);
|
||||
}
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#writable-stream-deal-with-rejection
|
||||
void WritableStream::DealWithRejection(JSContext* aCx,
|
||||
JS::Handle<JS::Value> aError,
|
||||
|
|
@ -140,6 +150,10 @@ void WritableStream::FinishErroring(JSContext* aCx, ErrorResult& aRv) {
|
|||
// Step 9. Let abortRequest be stream.[[pendingAbortRequest]].
|
||||
RefPtr<Promise> abortPromise = mPendingAbortRequestPromise;
|
||||
JS::Rooted<JS::Value> abortReason(aCx, mPendingAbortRequestReason);
|
||||
if (!JS_WrapValue(aCx, &abortReason)) {
|
||||
aRv.StealExceptionFromJSContext(aCx);
|
||||
return;
|
||||
}
|
||||
bool abortWasAlreadyErroring = mPendingAbortRequestWasAlreadyErroring;
|
||||
|
||||
// Step 10. Set stream.[[pendingAbortRequest]] to undefined.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue