diff options
Diffstat (limited to 'js/src/jit-test/tests/self-hosting/is-constructor-inlined.js')
-rw-r--r-- | js/src/jit-test/tests/self-hosting/is-constructor-inlined.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/self-hosting/is-constructor-inlined.js b/js/src/jit-test/tests/self-hosting/is-constructor-inlined.js new file mode 100644 index 0000000000..e801a4b58e --- /dev/null +++ b/js/src/jit-test/tests/self-hosting/is-constructor-inlined.js @@ -0,0 +1,16 @@ +var g = newGlobal(); +var w = g.eval("() => {}"); +var v = g.eval("Array"); + +function f() +{ + try { + Reflect.construct(v, {}, w); + } catch (e) { + assertEq(e instanceof TypeError, true); + } +} + +f(); +f(); +f(); |