summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/class/subclass-builtins/subclass-Error.js
blob: 0b1abb0c67bd72325479ec9950360169f84b92fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This file was procedurally generated from the following sources:
// - src/subclass-builtins/Error.case
// - src/subclass-builtins/default/statement.template
/*---
description: new SubError() instanceof Error (Subclass instanceof Heritage)
flags: [generated]
---*/


class Subclass extends Error {}

const sub = new Subclass();
assert(sub instanceof Subclass);
assert(sub instanceof Error);

reportCompare(0, 0);