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


class Subclass extends URIError {}

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

reportCompare(0, 0);