Index: test/mjsunit/holy-double-no-arg-array.js |
diff --git a/test/mjsunit/es6/regress/regress-594084.js b/test/mjsunit/holy-double-no-arg-array.js |
similarity index 55% |
copy from test/mjsunit/es6/regress/regress-594084.js |
copy to test/mjsunit/holy-double-no-arg-array.js |
index 4953cc9bb61cef55aaee15a8b6caa739c3416827..73e2ddc6cea0584b48c305b4d816c0d7c992db13 100644 |
--- a/test/mjsunit/es6/regress/regress-594084.js |
+++ b/test/mjsunit/holy-double-no-arg-array.js |
@@ -1,10 +1,14 @@ |
// 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. |
-// |
-// Flags: --lazy --min-preparse-length=0 |
+ |
(function() { |
- function CRASH(defaultParameter = |
- (function() { function functionDeclaration() { return 0; } }())) { |
+ function f() { |
+ return new Array(); |
} |
+ var a = f(); |
+ a[0] = 0.5; |
+ var b = f(); |
+ b[2] = 0.5; |
+ assertEquals(undefined, b[0]); |
})(); |