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


class Subclass extends ArrayBuffer {}

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

reportCompare(0, 0);