mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
refactor: add CanGc as argument to Promise::reject_error (#35646)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
c844ed232a
commit
38b71087bd
43 changed files with 323 additions and 249 deletions
|
@ -961,7 +961,7 @@ impl ReadableStreamMethods<crate::DomTypeHolder> for ReadableStream {
|
|||
// If ! IsReadableStreamLocked(this) is true,
|
||||
// return a promise rejected with a TypeError exception.
|
||||
let promise = Promise::new(&self.global(), can_gc);
|
||||
promise.reject_error(Error::Type("stream is not locked".to_owned()));
|
||||
promise.reject_error(Error::Type("stream is not locked".to_owned()), can_gc);
|
||||
promise
|
||||
} else {
|
||||
// Return ! ReadableStreamCancel(this, reason).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue