Debian Codegraph @

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

raw
1 // |reftest| shell-option(--enable-explicit-resource-management) skip-if(!(this.hasOwnProperty('getBuildConfiguration')&&getBuildConfiguration('explicit-resource-management'))||!xulRuntime.shell) -- explicit-resource-management is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2023 Ron Buckton. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-properties-of-disposablestack-constructor
7 description: >
8 The prototype of DisposableStack is Function.prototype
9 info: |
10 The value of the [[Prototype]] internal slot of the DisposableStack object is the
11 intrinsic object %FunctionPrototype%.
12 features: [explicit-resource-management]
13 ---*/
14
15 assert.sameValue(
16 Object.getPrototypeOf(DisposableStack),
17 Function.prototype,
18 'Object.getPrototypeOf(DisposableStack) returns the value of `Function.prototype`'
19 );
20
21 reportCompare(0, 0);