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

Side by Side Diff: test/mjsunit/es6/classes-subclass-arrays.js

Issue 1213813003: [es6] Remove harmony-classes flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove empty flags field from json Created 5 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/es6/classes-maps.js ('k') | test/mjsunit/es6/debug-step-into-class-extends.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4
5 // Flags: --harmony-classes
6 'use strict'; 5 'use strict';
7 6
8 (function TestDefaultConstructor() { 7 (function TestDefaultConstructor() {
9 class Stack extends Array { } 8 class Stack extends Array { }
10 { 9 {
11 let s1 = new Stack(); 10 let s1 = new Stack();
12 assertSame(Stack.prototype, s1.__proto__); 11 assertSame(Stack.prototype, s1.__proto__);
13 assertTrue(Array.isArray(s1)); 12 assertTrue(Array.isArray(s1));
14 assertSame(0, s1.length); 13 assertSame(0, s1.length);
15 s1[0] = 'xyz'; 14 s1[0] = 'xyz';
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 assertArrayEquals([4,5,6,1,2,3], [4,5,6].concat(s1)); 140 assertArrayEquals([4,5,6,1,2,3], [4,5,6].concat(s1));
142 }()); 141 }());
143 142
144 143
145 (function TestJSONStringify() { 144 (function TestJSONStringify() {
146 class Stack extends Array { } 145 class Stack extends Array { }
147 146
148 let s1 = new Stack(1,2,3); 147 let s1 = new Stack(1,2,3);
149 assertSame("[1,2,3]", JSON.stringify(s1)); 148 assertSame("[1,2,3]", JSON.stringify(s1));
150 }()); 149 }());
OLDNEW
« no previous file with comments | « test/mjsunit/es6/classes-maps.js ('k') | test/mjsunit/es6/debug-step-into-class-extends.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698