Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | |
|
dingxiangfei2009
2015/12/12 01:27:01
The file name has a typo
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Flags: --harmony-proxies | |
| 6 | |
| 7 // Do not read out the prototype from a cross-realm object. | |
| 8 var realm = Realm.create(); | |
| 9 | |
| 10 __proto__ = { get foo() { print("+++++++++++++"); } }; | |
| 11 Realm.eval(realm, "Reflect.getPrototypeOf(Realm.global(0))"); | |
| 12 | |
| 13 // 2-level indirection | |
| 14 __proto__ = new Proxy({}, | |
| 15 new Proxy({}, { | |
| 16 get() { assertUnreachable() } | |
| 17 }) | |
| 18 ); | |
| 19 Realm.eval(realm, "Realm.global(0) instanceof Object"); | |
| OLD | NEW |