Skip to content

Commit

Permalink
Fix custom test for ReadableStreamDefaultController (#1834)
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg committed Sep 20, 2024
1 parent 36b2f3e commit 0a36b82
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions custom/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4149,11 +4149,18 @@ api:
}
var instance;
var stream = new ReadableStream({
start(controller) {
instance = controller;
try {
var stream = new ReadableStream({
start(controller) {
instance = controller;
}
});
} catch(e) {
if (e instanceof TypeError) {
return {result: false, message: e.message};
}
});
return e;
}
ReadableStreamDefaultReader:
__base: |-
<%api.ReadableStream:streamPromise%>
Expand Down

0 comments on commit 0a36b82

Please sign in to comment.