Index: test/mjsunit/regress/regress-undefined-nan2.js |
diff --git a/test/mjsunit/regress/regress-449070.js b/test/mjsunit/regress/regress-undefined-nan2.js |
similarity index 56% |
copy from test/mjsunit/regress/regress-449070.js |
copy to test/mjsunit/regress/regress-undefined-nan2.js |
index 7a0f0a838cdd25817ab6a2d8f63c1ef9fbe6e526..9b0a05f8fddfe885d471a112bfa72f0832960ee0 100644 |
--- a/test/mjsunit/regress/regress-449070.js |
+++ b/test/mjsunit/regress/regress-undefined-nan2.js |
@@ -1,10 +1,12 @@ |
// Copyright 2015 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 |
-try { |
- %NormalizeElements(this); |
-} catch(e) { |
+function foo(a, i) { |
+ var o = [0.5,,1]; |
+ a[i] = o[i]; |
} |
+var a1 = [0.1,0.1]; |
+foo(a1, 0); |
+foo(a1, 1); |
+assertEquals(undefined, a1[1]); |