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


const Subclass = class extends Uint8ClampedArray {}

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

reportCompare(0, 0);