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 'use strict'; | 5 'use strict'; |
6 | 6 |
7 // Flags: --harmony-computed-property-names --harmony-classes | 7 // Flags: --harmony-computed-property-names |
8 | 8 |
9 | 9 |
10 function ID(x) { | 10 function ID(x) { |
11 return x; | 11 return x; |
12 } | 12 } |
13 | 13 |
14 | 14 |
15 (function TestClassMethodString() { | 15 (function TestClassMethodString() { |
16 class C { | 16 class C { |
17 a() { return 'A'} | 17 a() { return 'A'} |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 class C { | 454 class C { |
455 get [C]() { return 42; } | 455 get [C]() { return 42; } |
456 } | 456 } |
457 }, ReferenceError); | 457 }, ReferenceError); |
458 assertThrows(function() { | 458 assertThrows(function() { |
459 class C { | 459 class C { |
460 set [C](_) { } | 460 set [C](_) { } |
461 } | 461 } |
462 }, ReferenceError); | 462 }, ReferenceError); |
463 })(); | 463 })(); |
OLD | NEW |