diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/saved-stacks/bug-1509420.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/saved-stacks/bug-1509420.js b/js/src/jit-test/tests/saved-stacks/bug-1509420.js new file mode 100644 index 0000000000..87cd0b7f21 --- /dev/null +++ b/js/src/jit-test/tests/saved-stacks/bug-1509420.js @@ -0,0 +1,9 @@ +// bindtoAsyncStack shouldn't choke on CCWs of functions. + +var g = newGlobal(); +g.evaluate("function h() {}"); +bindToAsyncStack(g.h, { stack: saveStack() })(); + +bindToAsyncStack(new Proxy(() => {}, { apply: () => {} }), + { stack: saveStack() }) +(); |