diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/bug1678442.js')
-rw-r--r-- | js/src/jit-test/tests/basic/bug1678442.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug1678442.js b/js/src/jit-test/tests/basic/bug1678442.js new file mode 100644 index 0000000000..d2f3dd5823 --- /dev/null +++ b/js/src/jit-test/tests/basic/bug1678442.js @@ -0,0 +1,6 @@ +var fun = function() {}; +var newTarget = (function(){}).bind(); +Object.defineProperty(newTarget, "prototype", {get() { relazifyFunctions() }}); +for (var i = 0; i < 10; i++) { + Reflect.construct(fun, [], newTarget); +} |