Debian Codegraph @

js/src/tests/test262/language/expressions/class/subclass-builtins/subclass-RegExp.js

raw
1 // This file was procedurally generated from the following sources:
2 // - src/subclass-builtins/RegExp.case
3 // - src/subclass-builtins/default/expression.template
4 /*---
5 description: new SubRegExp() instanceof RegExp (Subclass instanceof Heritage)
6 flags: [generated]
7 ---*/
8
9
10 const Subclass = class extends RegExp {}
11
12 const sub = new Subclass();
13 assert(sub instanceof Subclass);
14 assert(sub instanceof RegExp);
15
16 reportCompare(0, 0);