summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors-absent-on-prototype.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors-absent-on-prototype.js')
-rw-r--r--js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors-absent-on-prototype.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors-absent-on-prototype.js b/js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors-absent-on-prototype.js
new file mode 100644
index 0000000000..b956a12d5f
--- /dev/null
+++ b/js/src/tests/test262/built-ins/NativeErrors/AggregateError/prototype/errors-absent-on-prototype.js
@@ -0,0 +1,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);