Debian Codegraph @

js/src/tests/test262/built-ins/ShadowRealm/proto.js

raw
1 // |reftest| shell-option(--enable-shadow-realms) skip-if(!xulRuntime.shell) -- requires shell-options
2 // Copyright (C) 2021 Rick Waldron. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-properties-of-the-shadowrealm-constructor
6 description: >
7 The [[Prototype]] of ShadowRealm is Function.Prototype.
8 info: |
9 Unless otherwise specified every built-in function and every built-in constructor
10 has the Function prototype object, which is the initial value of the expression
11 Function.prototype, as the value of its [[Prototype]] internal slot.
12
13 features: [ShadowRealm]
14 ---*/
15
16 assert.sameValue(Object.getPrototypeOf(ShadowRealm), Function.prototype);
17
18 reportCompare(0, 0);