mirror of https://github.com/tc39/test262.git
Assert 'errors' is absent for AggregateError.prototype
This commit is contained in:
parent
660a3d6512
commit
3d411fa969
19
test/built-ins/NativeErrors/AggregateError/prototype/errors-absent-on-prototype.js
vendored
Normal file
19
test/built-ins/NativeErrors/AggregateError/prototype/errors-absent-on-prototype.js
vendored
Normal 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);
|
Loading…
Reference in New Issue