icecat: add release icecat-140.10.1-1gnu1 for ecne

This commit is contained in:
Ark74 2026-05-04 16:58:41 -06:00
parent a5f93cb214
commit ff85d7c623
1256 changed files with 63469 additions and 24141 deletions

View file

@ -259,7 +259,8 @@ bool PipeToPump::SourceOrDestErroredOrClosed(JSContext* aCx) {
// Step 1. Errors must be propagated forward: if source.[[state]] is or
// becomes "errored", then
if (source->State() == ReadableStream::ReaderState::Errored) {
JS::Rooted<JS::Value> storedError(aCx, source->StoredError());
JS::Rooted<JS::Value> storedError(aCx);
source->GetStoredError(aCx, &storedError, IgnoredErrorResult());
OnSourceErrored(aCx, storedError);
return true;
}
@ -267,7 +268,8 @@ bool PipeToPump::SourceOrDestErroredOrClosed(JSContext* aCx) {
// Step 2. Errors must be propagated backward: if dest.[[state]] is or becomes
// "errored", then
if (dest->State() == WritableStream::WriterState::Errored) {
JS::Rooted<JS::Value> storedError(aCx, dest->StoredError());
JS::Rooted<JS::Value> storedError(aCx);
dest->GetStoredError(aCx, &storedError, IgnoredErrorResult());
OnDestErrored(aCx, storedError);
return true;
}
@ -457,15 +459,20 @@ class ShutdownActionFinishedPromiseHandler final : public PromiseNativeHandler {
}
void ResolvedCallback(JSContext* aCx, JS::Handle<JS::Value> aValue,
ErrorResult&) override {
ErrorResult& aRv) override {
// https://streams.spec.whatwg.org/#rs-pipeTo-shutdown-with-action
// Step 5. Upon fulfillment of p, finalize, passing along originalError if
// it was given.
JS::Rooted<Maybe<JS::Value>> error(aCx);
JS::Rooted<Maybe<JS::Value>> maybeError(aCx);
if (mHasError) {
error = Some(mError);
JS::Rooted<JS::Value> error(aCx, mError);
if (!JS_WrapValue(aCx, &error)) {
aRv.StealExceptionFromJSContext(aCx);
return;
}
maybeError = Some(error.get());
}
mPipeToPump->Finalize(aCx, error);
mPipeToPump->Finalize(aCx, maybeError);
}
void RejectedCallback(JSContext* aCx, JS::Handle<JS::Value> aReason,