Index: test/mjsunit/regress/regress-sort-arguments.js |
diff --git a/test/mjsunit/regress/regress-347904.js b/test/mjsunit/regress/regress-sort-arguments.js |
similarity index 53% |
copy from test/mjsunit/regress/regress-347904.js |
copy to test/mjsunit/regress/regress-sort-arguments.js |
index 1a27b054a4b89b8e8841c9311f1c155aea7ce4d7..54ebeb111bbc9ad7411f1c970660ab7c136244c1 100644 |
--- a/test/mjsunit/regress/regress-347904.js |
+++ b/test/mjsunit/regress/regress-sort-arguments.js |
@@ -2,11 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --allow-natives-syntax --stress-runs=2 |
- |
-var v = /abc/; |
-function f() { |
- v = 1578221999; |
-}; |
-%OptimizeFunctionOnNextCall(f); |
-f(); |
+function f(a) { return arguments; } |
+var a = f(1,2,3); |
+delete a[1]; |
+Array.prototype.sort.apply(a); |
+a[10000000] = 4; |
+Array.prototype.sort.apply(a); |