| 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 --allow-natives-syntax | 5 // Flags: --allow-natives-syntax |
| 6 | 6 |
| 7 | 7 |
| 8 function ID(x) { | 8 function ID(x) { |
| 9 return x; | 9 return x; |
| 10 } | 10 } |
| 11 | 11 |
| 12 | 12 |
| 13 (function TestComputedMethodSuper() { | 13 (function TestComputedMethodSuper() { |
| 14 var proto = { | 14 var proto = { |
| 15 m() { | 15 m() { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 }; | 69 }; |
| 70 object.a = 2; | 70 object.a = 2; |
| 71 assertEquals('a 2', value); | 71 assertEquals('a 2', value); |
| 72 object.b = 3; | 72 object.b = 3; |
| 73 assertEquals('b 3', value); | 73 assertEquals('b 3', value); |
| 74 object[0] = 4; | 74 object[0] = 4; |
| 75 assertEquals('0 4', value); | 75 assertEquals('0 4', value); |
| 76 object[1] = 5; | 76 object[1] = 5; |
| 77 assertEquals('1 5', value); | 77 assertEquals('1 5', value); |
| 78 })(); | 78 })(); |
| OLD | NEW |