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

Side by Side Diff: test/mjsunit/es6/classes-maps.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-lazy-parsing.js ('k') | test/mjsunit/es6/classes-subclass-arrays.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 --allow-natives-syntax 5 // Flags: --allow-natives-syntax
6 'use strict'; 6 'use strict';
7 7
8 (function TestMaps() { 8 (function TestMaps() {
9 class Base {} 9 class Base {}
10 class Derived extends Base {} 10 class Derived extends Base {}
11 11
12 let d1 = new Derived(); 12 let d1 = new Derived();
13 let d2 = new Derived(); 13 let d2 = new Derived();
14 14
15 assertTrue(%HaveSameMap(d1, d2)); 15 assertTrue(%HaveSameMap(d1, d2));
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 assertSame(10, d1.byteLength); 59 assertSame(10, d1.byteLength);
60 60
61 Derived.__proto__ = F; 61 Derived.__proto__ = F;
62 called = 0; 62 called = 0;
63 let d2 = new Derived(); 63 let d2 = new Derived();
64 assertSame(1, called); 64 assertSame(1, called);
65 assertThrows(function() { d2.byteLength; }, TypeError); 65 assertThrows(function() { d2.byteLength; }, TypeError);
66 66
67 assertFalse(%HaveSameMap(d1, d2)); 67 assertFalse(%HaveSameMap(d1, d2));
68 }()); 68 }());
OLDNEW
« no previous file with comments | « test/mjsunit/es6/classes-lazy-parsing.js ('k') | test/mjsunit/es6/classes-subclass-arrays.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698