Debian Codegraph @

js/src/tests/test262/language/statements/class/subclass/builtin-objects/Symbol/symbol-valid-as-extends-value.js

raw
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 es6id: 19.4.1
5 description: Symbol can be used as the value of an extends
6 info: |
7 19.4.1 The Symbol Constructor
8
9 ...
10 The Symbol constructor is not intended to be used with the new operator or to
11 be subclassed. It may be used as the value of an extends clause of a class
12 definition but a super call to the Symbol constructor will cause an exception.
13 ...
14 features: [Symbol]
15 ---*/
16
17 class S extends Symbol {}
18
19 reportCompare(0, 0);