diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/stream/proper-realm-cancel.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/stream/proper-realm-cancel.js b/js/src/jit-test/tests/stream/proper-realm-cancel.js new file mode 100644 index 0000000000..b1098c3698 --- /dev/null +++ b/js/src/jit-test/tests/stream/proper-realm-cancel.js @@ -0,0 +1,8 @@ +// |jit-test| skip-if: !this.hasOwnProperty("ReadableStream") + +ignoreUnhandledRejections(); + +var g = newGlobal({ newCompartment: true }); +var ccwCancelMethod = new g.Function("return 17;"); + +new ReadableStream({ cancel: ccwCancelMethod }).cancel("bye"); |