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 | |
6 | |
7 | 5 |
8 function ID(x) { | 6 function ID(x) { |
9 return x; | 7 return x; |
10 } | 8 } |
11 | 9 |
12 | 10 |
13 | 11 |
14 (function TestBasicsString() { | 12 (function TestBasicsString() { |
15 var object = { | 13 var object = { |
16 a: 'A', | 14 a: 'A', |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 var o = { | 291 var o = { |
294 get [throwMyError()]() { return 42; } | 292 get [throwMyError()]() { return 42; } |
295 }; | 293 }; |
296 }, MyError); | 294 }, MyError); |
297 assertThrows(function() { | 295 assertThrows(function() { |
298 var o = { | 296 var o = { |
299 set [throwMyError()](_) { } | 297 set [throwMyError()](_) { } |
300 }; | 298 }; |
301 }, MyError); | 299 }, MyError); |
302 })(); | 300 })(); |
OLD | NEW |