mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
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:
parent
34e21157de
commit
57b0a3f231
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue