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
|
|
@ -112,6 +112,16 @@ JSObject* ReadableStream::WrapObject(JSContext* aCx,
|
|||
return ReadableStream_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void ReadableStream::GetStoredError(JSContext* aCx,
|
||||
JS::MutableHandle<JS::Value> aStoredError,
|
||||
ErrorResult& aRv) const {
|
||||
aStoredError.set(mStoredError);
|
||||
if (!JS_WrapValue(aCx, aStoredError)) {
|
||||
aStoredError.setUndefined();
|
||||
aRv.StealExceptionFromJSContext(aCx);
|
||||
}
|
||||
}
|
||||
|
||||
ReadableStreamDefaultReader* ReadableStream::GetDefaultReader() {
|
||||
return mReader->AsDefault();
|
||||
}
|
||||
|
|
@ -586,7 +596,12 @@ already_AddRefed<Promise> ReadableStreamCancel(JSContext* aCx,
|
|||
|
||||
// Step 3.
|
||||
if (aStream->State() == ReadableStream::ReaderState::Errored) {
|
||||
JS::Rooted<JS::Value> storedError(aCx, aStream->StoredError());
|
||||
JS::Rooted<JS::Value> storedError(aCx);
|
||||
aStream->GetStoredError(aCx, &storedError, aRv);
|
||||
if (aRv.Failed()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return Promise::CreateRejected(aStream->GetParentObject(), storedError,
|
||||
aRv);
|
||||
}
|
||||
|
|
@ -892,13 +907,21 @@ ReadableStreamDefaultTeeSourceAlgorithms::CancelCallback(
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
JS::Rooted<JS::Value> reason1(aCx, mTeeState->Reason1());
|
||||
JS::Rooted<JS::Value> reason1(aCx);
|
||||
mTeeState->GetReason1(aCx, &reason1, aRv);
|
||||
if (aRv.Failed()) {
|
||||
return nullptr;
|
||||
}
|
||||
if (!JS_SetElement(aCx, compositeReason, 0, reason1)) {
|
||||
aRv.StealExceptionFromJSContext(aCx);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
JS::Rooted<JS::Value> reason2(aCx, mTeeState->Reason2());
|
||||
JS::Rooted<JS::Value> reason2(aCx);
|
||||
mTeeState->GetReason2(aCx, &reason2, aRv);
|
||||
if (aRv.Failed()) {
|
||||
return nullptr;
|
||||
}
|
||||
if (!JS_SetElement(aCx, compositeReason, 1, reason2)) {
|
||||
aRv.StealExceptionFromJSContext(aCx);
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue