proto.js (836B)
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 description: The prototype of SuppressedError constructor is Error 7 esid: sec-properties-of-the-suppressederror-constructors 8 info: | 9 Properties of the SuppressedError Constructor 10 11 - has a [[Prototype]] internal slot whose value is the intrinsic object %Error%. 12 features: [explicit-resource-management] 13 ---*/ 14 15 var proto = Object.getPrototypeOf(SuppressedError); 16 17 assert.sameValue(proto, Error); 18 19 reportCompare(0, 0);