mirror of
https://github.com/tc39/test262.git
synced 2025-08-17 16:08:29 +02:00
Includes some proto-from-ctor-realm.js tests that look like standard tests for prototypes. Co-authored-by: Ron Buckton <ron.buckton@microsoft.com> Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
17 lines
531 B
JavaScript
17 lines
531 B
JavaScript
// Copyright (C) 2023 Ron Buckton. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
description: The prototype of SuppressedError constructor is Error
|
|
esid: sec-properties-of-the-suppressederror-constructors
|
|
info: |
|
|
Properties of the SuppressedError Constructor
|
|
|
|
- has a [[Prototype]] internal slot whose value is the intrinsic object %Error%.
|
|
features: [explicit-resource-management]
|
|
---*/
|
|
|
|
var proto = Object.getPrototypeOf(SuppressedError);
|
|
|
|
assert.sameValue(proto, Error);
|