summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/class/subclass-builtins/subclass-ReferenceError.js
blob: 05613c49ece60ebd46540fdff132bb03ee3e11fb (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/ReferenceError.case
// - src/subclass-builtins/default/statement.template
/*---
description: new SubReferenceError() instanceof ReferenceError (Subclass instanceof Heritage)
flags: [generated]
---*/


class Subclass extends ReferenceError {}

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

reportCompare(0, 0);