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

16 lines
468 B
JavaScript

// This file was procedurally generated from the following sources:
// - src/subclass-builtins/DataView.case
// - src/subclass-builtins/default/expression.template
/*---
description: new SubDataView() instanceof DataView (Subclass instanceof Heritage)
features: [TypedArray, DataView]
flags: [generated]
---*/
const Subclass = class extends DataView {}
const sub = new Subclass(new ArrayBuffer(1));
assert(sub instanceof Subclass);
assert(sub instanceof DataView);