Assert 'errors' is absent for AggregateError.prototype

This commit is contained in:
André Bargull 2020-06-24 04:29:12 -07:00 committed by Rick Waldron
parent 660a3d6512
commit 3d411fa969
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
// 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);