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-object-literals | 5 // Flags: --harmony-computed-property-names |
6 // Flags: --harmony-classes --allow-natives-syntax | 6 // Flags: --harmony-classes --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 var proto = { | 15 var proto = { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 }; | 70 }; |
71 object.a = 2; | 71 object.a = 2; |
72 assertEquals('a 2', value); | 72 assertEquals('a 2', value); |
73 object.b = 3; | 73 object.b = 3; |
74 assertEquals('b 3', value); | 74 assertEquals('b 3', value); |
75 object[0] = 4; | 75 object[0] = 4; |
76 assertEquals('0 4', value); | 76 assertEquals('0 4', value); |
77 object[1] = 5; | 77 object[1] = 5; |
78 assertEquals('1 5', value); | 78 assertEquals('1 5', value); |
79 })(); | 79 })(); |
OLD | NEW |