summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/newTargetOSR.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/newTargetOSR.js')
-rw-r--r--js/src/jit-test/tests/basic/newTargetOSR.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/newTargetOSR.js b/js/src/jit-test/tests/basic/newTargetOSR.js
new file mode 100644
index 0000000000..b90e96cf1b
--- /dev/null
+++ b/js/src/jit-test/tests/basic/newTargetOSR.js
@@ -0,0 +1,6 @@
+function testOSRNewTarget(expected) {
+ for (let i = 0; i < 1100; i++)
+ assertEq(new.target, expected);
+}
+
+new testOSRNewTarget(testOSRNewTarget);