diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/promise/bug1347984.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/promise/bug1347984.js b/js/src/jit-test/tests/promise/bug1347984.js new file mode 100644 index 0000000000..10dbae25b2 --- /dev/null +++ b/js/src/jit-test/tests/promise/bug1347984.js @@ -0,0 +1,6 @@ +// |jit-test| error:dead object +var g = newGlobal({newCompartment: true}); +var p = new Promise(() => {}); +g.Promise.prototype.then.call(p, () => void 0); +g.eval("nukeAllCCWs()"); +resolvePromise(p, 9); |