Index: test/mjsunit/regress/regress-667603.js |
diff --git a/test/mjsunit/regress/regress-667603.js b/test/mjsunit/regress/regress-667603.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7e91a16437f14868ebba64c646feaad64f15d954 |
--- /dev/null |
+++ b/test/mjsunit/regress/regress-667603.js |
@@ -0,0 +1,9 @@ |
+// Copyright 2016 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. |
+ |
+try { |
+ var v65 = new ArrayBuffer(2147483647); |
+} catch(e) { |
+ assertTrue(e instanceof RangeError); |
+} |