summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors-absent-on-prototype.js
blob: b956a12d5f32e8a922f715379de5f39f7124b9b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2020 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-properties-of-the-aggregate-error-prototype-objects
description: >
  The AggregateError prototype object isn't an AggregateError instance.
info: |
  Properties of the AggregateError Prototype Object

  The AggregateError prototype object:
    ...
    - is not an Error instance or an AggregateError instance and does not have an
      [[ErrorData]] internal slot.
    ...
features: [AggregateError]
---*/

assert.sameValue(AggregateError.prototype.hasOwnProperty("errors"), false);

reportCompare(0, 0);