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

Unified Diff: test/mjsunit/regress/regress-620750.js

Issue 2090013002: [heap] Fix check in AdvancePage (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/heap/spaces.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-620750.js
diff --git a/test/mjsunit/es6/classes-super.js b/test/mjsunit/regress/regress-620750.js
similarity index 55%
copy from test/mjsunit/es6/classes-super.js
copy to test/mjsunit/regress/regress-620750.js
index 7bdf4ba86c1c44c6915a046e7ad48cf463da2c20..ab8fbd98fc7fbe6c04b19dfbc7952fa8d98e32b4 100644
--- a/test/mjsunit/es6/classes-super.js
+++ b/test/mjsunit/regress/regress-620750.js
@@ -2,14 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-"use strict";
+// Flags: --es-staging
-class Test {
- m() {
- super.length = 10;
+function push_a_lot(arr) {
+ for (var i = 0; i < 2e4; i++) {
+ arr.push(i);
}
+ return arr;
}
-var array = [];
-Test.prototype.m.call(array);
-assertEquals(10, array.length);
+__v_13 = push_a_lot([]);
« no previous file with comments | « src/heap/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698