summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/maglev/regress-1407606.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/maglev/regress-1407606.js')
-rw-r--r--deps/v8/test/mjsunit/maglev/regress-1407606.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/maglev/regress-1407606.js b/deps/v8/test/mjsunit/maglev/regress-1407606.js
new file mode 100644
index 0000000000..f44142c008
--- /dev/null
+++ b/deps/v8/test/mjsunit/maglev/regress-1407606.js
@@ -0,0 +1,18 @@
+// Copyright 2022 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// Flags: --allow-natives-syntax --maglev
+
+for (let v0 = 0; v0 < 100; v0++) {
+ for (let v1 = 0; v1 < 100; v1++) {
+ const v4 = new Float64Array(33519);
+ }
+ for (let v5 = 0; v5 < 100; v5++) {
+ function F8( a12) {
+ if (!new.target) { throw 'must be called with new'; }
+ a12--;
+ }
+ const v14 = new F8(- -1000000.0);
+ }
+}