summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/NativeErrors/AggregateError/proto.js
blob: 0149c38054718bbc3270cce4b6e87b7fe1748b3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2019 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: The prototype of AggregateError constructor is Error
esid: sec-aggregate-error
info: |
  Properties of the AggregateError Constructor

  - has a [[Prototype]] internal slot whose value is the intrinsic object %Error%.
features: [AggregateError]
---*/

var proto = Object.getPrototypeOf(AggregateError);

assert.sameValue(proto, Error);

reportCompare(0, 0);