Streams: fix writable transfer sink abort steps (#36638)

Fixes an error where a promise was rejected where it should have been
resolved.

Follow-up to
https://github.com/servo/servo/pull/36588/files#r2049437506; the initial
diagnosis was wrong.

Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
This commit is contained in:
Gregory Terzian 2025-04-22 14:49:18 +08:00 committed by GitHub
parent 34e21157de
commit 57b0a3f231
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -555,7 +555,7 @@ impl WritableStreamDefaultController {
promise.reject_error(error, can_gc);
} else {
// Otherwise, return a promise resolved with undefined.
promise.reject_native(&(), can_gc);
promise.resolve_native(&(), can_gc);
}
promise
},