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


class Subclass extends Uint8Array {}

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

reportCompare(0, 0);