mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
script: Mark callback methods with CanGc. (#35753)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
3d320fa96a
commit
5650fa2e79
26 changed files with 133 additions and 67 deletions
|
@ -679,7 +679,7 @@ impl ReadableStreamDefaultController {
|
|||
let size = if let Some(strategy_size) = strategy_size {
|
||||
// Note: the Rethrow exception handling is necessary,
|
||||
// otherwise returning JSFailed will panic because no exception is pending.
|
||||
let result = strategy_size.Call__(chunk, ExceptionHandling::Rethrow);
|
||||
let result = strategy_size.Call__(chunk, ExceptionHandling::Rethrow, can_gc);
|
||||
match result {
|
||||
// Let chunkSize be result.[[Value]].
|
||||
Ok(size) => size,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue