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


class Subclass extends Uint8ClampedArray {}

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

reportCompare(0, 0);