blob: f5b90dcb083d87b5ea722b0f98860219a08ca930 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// 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
3// found in the LICENSE file.
4
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00005var realm = Realm.create();
6
7this.__proto__ = new Proxy({}, {
8 getPrototypeOf() { assertUnreachable() },
9 get() { assertUnreachable() }
10});
11
12var other_type_error = Realm.eval(realm, "TypeError");
13assertThrows(() => Realm.eval(realm, "Realm.global(0).foo"), other_type_error);