Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Unified Diff: test/mjsunit/holy-double-no-arg-array.js

Issue 2002813002: [stubs] Fix hole-related double bug in ArrayNoArgumentConstructor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stub-assembler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]);
})();
« no previous file with comments | « src/code-stub-assembler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698