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

Unified Diff: test/mjsunit/regress/regress-crbug-602184.js

Issue 1912443004: [tests] Add testcase for r35397 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-602184.js
diff --git a/test/mjsunit/es6/classes-super.js b/test/mjsunit/regress/regress-crbug-602184.js
similarity index 53%
copy from test/mjsunit/es6/classes-super.js
copy to test/mjsunit/regress/regress-crbug-602184.js
index 7bdf4ba86c1c44c6915a046e7ad48cf463da2c20..c7d793bb0e58edc509b9dd0615d50e83a8ef2ee1 100644
--- a/test/mjsunit/es6/classes-super.js
+++ b/test/mjsunit/regress/regress-crbug-602184.js
@@ -2,14 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-"use strict";
-
-class Test {
- m() {
- super.length = 10;
+function f(test, a) {
+ var v;
+ if (test) {
+ v = v|0;
}
+ a[v] = 1;
}
+var v = new String();
+f(false, v);
+f(false, v);
-var array = [];
-Test.prototype.m.call(array);
-assertEquals(10, array.length);
+v = new Int32Array(10);
+f(true, v);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698