blob: 32134b5418d74b76d79c5e31f69841ee4d8245f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-properties-of-the-error-constructor
description: >
The Error constructor has a [[Prototype]] internal slot whose value is %Function.prototype%.
---*/
assert.sameValue(
Function.prototype.isPrototypeOf(Error().constructor),
true,
'Function.prototype.isPrototypeOf(err1.constructor) returns true'
);
assert.sameValue(
Function.prototype.isPrototypeOf(Error.constructor),
true,
'Function.prototype.isPrototypeOf(Error.constructor) returns true'
);
reportCompare(0, 0);
|