| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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-proxies --harmony-reflect | |
| 6 | |
| 7 "use strict"; | 5 "use strict"; |
| 8 var global = this; | 6 var global = this; |
| 9 | 7 |
| 10 (function TestGlobalReceiver() { | 8 (function TestGlobalReceiver() { |
| 11 class A { | 9 class A { |
| 12 s(value) { | 10 s(value) { |
| 13 super.bla = value; | 11 super.bla = value; |
| 14 } | 12 } |
| 15 } | 13 } |
| 16 var a = new A(); | 14 var a = new A(); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 93 |
| 96 assertEquals(undefined, object.y); | 94 assertEquals(undefined, object.y); |
| 97 object.setY(10); | 95 object.setY(10); |
| 98 assertEquals(10, object.y); | 96 assertEquals(10, object.y); |
| 99 | 97 |
| 100 // Change the receiver to the proxy, but the set is called on the global. | 98 // Change the receiver to the proxy, but the set is called on the global. |
| 101 object.setY.call(proxy, 3); | 99 object.setY.call(proxy, 3); |
| 102 assertEquals(3, target.y); | 100 assertEquals(3, target.y); |
| 103 assertEquals(11, calls); | 101 assertEquals(11, calls); |
| 104 })(); | 102 })(); |
| OLD | NEW |