Index: test/mjsunit/regress/regress-417709a.js |
diff --git a/test/mjsunit/regress/regress-empty-fixed-double-array.js b/test/mjsunit/regress/regress-417709a.js |
similarity index 54% |
copy from test/mjsunit/regress/regress-empty-fixed-double-array.js |
copy to test/mjsunit/regress/regress-417709a.js |
index 1db9e2b3e54e2abfddddd23f4ee6618ae438db20..d210c10429ad2a49d8df3436f054dca82d7583bd 100644 |
--- a/test/mjsunit/regress/regress-empty-fixed-double-array.js |
+++ b/test/mjsunit/regress/regress-417709a.js |
@@ -2,14 +2,15 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --allow-natives-syntax --enable-slow-asserts |
+// Flags: --stack-size=100 |
+ |
+var a = []; |
+ |
+Object.observe(a, function() {}); |
function f(a, x) { |
- a.shift(); |
- a[0] = x; |
+ a.length = x; |
+ f(a, x + 1); |
} |
-f([1], 1.1); |
-f([1], 1.1); |
-%OptimizeFunctionOnNextCall(f); |
-f([1], 1.1); |
+assertThrows(function() { f(a, 1); }, RangeError); |