test262/test/language/expressions/class/subclass-builtins/subclass-Uint16Array.js

16 lines
468 B
JavaScript
Raw Normal View History

// This file was procedurally generated from the following sources:
// - src/subclass-builtins/Uint16Array.case
// - src/subclass-builtins/default/expression.template
/*---
description: new SubUint16Array() instanceof Uint16Array (Subclass instanceof Heritage)
2020-09-15 16:53:17 +02:00
features: [TypedArray, Uint16Array]
flags: [generated]
---*/
const Subclass = class extends Uint16Array {}
const sub = new Subclass();
assert(sub instanceof Subclass);
assert(sub instanceof Uint16Array);