OLD | NEW |
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-computed-property-names --harmony-sloppy | 5 // Flags: --harmony-computed-property-names --harmony-sloppy |
6 // Flags: --harmony-classes --allow-natives-syntax | 6 // Flags: --allow-natives-syntax |
7 | 7 |
8 | 8 |
9 function ID(x) { | 9 function ID(x) { |
10 return x; | 10 return x; |
11 } | 11 } |
12 | 12 |
13 | 13 |
14 (function TestComputedMethodSuper() { | 14 (function TestComputedMethodSuper() { |
15 class Base { | 15 class Base { |
16 m() { | 16 m() { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 67 } |
68 new Derived().a = 2; | 68 new Derived().a = 2; |
69 assertEquals('a 2', value); | 69 assertEquals('a 2', value); |
70 new Derived().b = 3; | 70 new Derived().b = 3; |
71 assertEquals('b 3', value); | 71 assertEquals('b 3', value); |
72 new Derived()[0] = 4; | 72 new Derived()[0] = 4; |
73 assertEquals('0 4', value); | 73 assertEquals('0 4', value); |
74 new Derived()[1] = 5; | 74 new Derived()[1] = 5; |
75 assertEquals('1 5', value); | 75 assertEquals('1 5', value); |
76 })(); | 76 })(); |
OLD | NEW |