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

Unified Diff: test/mjsunit/es6/classes-super.js

Issue 1711813003: [classes] Support AccessorInfo-style data properties in super property stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/classes-super.js
diff --git a/test/mjsunit/regress/regress-4659.js b/test/mjsunit/es6/classes-super.js
similarity index 55%
copy from test/mjsunit/regress/regress-4659.js
copy to test/mjsunit/es6/classes-super.js
index ff436bec1b07d6a708ddd0a0c454ada3c353985c..7bdf4ba86c1c44c6915a046e7ad48cf463da2c20 100644
--- a/test/mjsunit/regress/regress-4659.js
+++ b/test/mjsunit/es6/classes-super.js
@@ -1,12 +1,15 @@
// 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: --harmony-function-name
-var obj = {
- get longerName(){
- return 42;
+"use strict";
+
+class Test {
+ m() {
+ super.length = 10;
}
-};
-assertEquals(42, obj.longerName);
+}
+
+var array = [];
+Test.prototype.m.call(array);
+assertEquals(10, array.length);
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698