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/harmony/class-fields-visibility.js

Issue 2330473002: Class fields, part 3 (backends)
Patch Set: bytecode test Created 4 years, 3 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/harmony/class-fields-to-name.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --harmony-class-fields
6
7 {
8 class C {
9 a = 0;
10 get a() { return 1; }
11 }
12
13 let c = new C;
14 assertEquals(0, c.a);
15 }
16
17 {
18 class C {
19 get a() { return 1; }
20 a = 0;
21 }
22
23 let c = new C;
24 assertEquals(0, c.a);
25 }
26
27 {
28 class Base {
29 get a() { return 1; }
30 }
31
32 class Derived extends Base {
33 a = 0;
34 }
35
36 let c = new Derived;
37 assertEquals(0, c.a);
38 }
39
40 {
41 class Base {
42 a = 0;
43 }
44
45 class Derived extends Base {
46 get a() { return 1; }
47 }
48
49 let c = new Derived;
50 assertEquals(0, c.a);
51 }
OLDNEW
« no previous file with comments | « test/mjsunit/harmony/class-fields-to-name.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698