blob: b7b730e01b88f7d1343c67b41d583094dfdc2934 (
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 Alexey Shvayka. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-symbol-constructor
description: >
Symbol is a constructor and has [[Construct]] internal method.
info: |
The Symbol constructor:
[...]
* may be used as the value of an extends clause of a class definition
but a super call to it will cause an exception.
[...]
* has a [[Prototype]] internal slot whose value is %Function.prototype%.
includes: [isConstructor.js]
features: [Symbol, Reflect.construct]
---*/
assert(isConstructor(Symbol));
assert.sameValue(Object.getPrototypeOf(Symbol), Function.prototype);
reportCompare(0, 0);
|