| 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-unscopables | |
| 6 // Flags: --harmony-proxies | 5 // Flags: --harmony-proxies |
| 7 | 6 |
| 8 | 7 |
| 9 // TODO(arv): Once proxies can intercept symbols, add more tests. | 8 // TODO(arv): Once proxies can intercept symbols, add more tests. |
| 10 | 9 |
| 11 | 10 |
| 12 function TestBasics() { | 11 function TestBasics() { |
| 13 var log = []; | 12 var log = []; |
| 14 | 13 |
| 15 var proxy = Proxy.create({ | 14 var proxy = Proxy.create({ |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 143 |
| 145 global.x = 2; | 144 global.x = 2; |
| 146 assertEquals(2, global.x); | 145 assertEquals(2, global.x); |
| 147 assertEquals(2, x); | 146 assertEquals(2, x); |
| 148 | 147 |
| 149 x = 3; | 148 x = 3; |
| 150 assertEquals(3, global.x); | 149 assertEquals(3, global.x); |
| 151 assertEquals(3, x); | 150 assertEquals(3, x); |
| 152 } | 151 } |
| 153 TestGlobalShouldIgnoreUnscopables(); | 152 TestGlobalShouldIgnoreUnscopables(); |
| OLD | NEW |