test262/test/language/statements/class/subclass-builtins/subclass-Promise.js

16 lines
431 B
JavaScript

// This file was procedurally generated from the following sources:
// - src/subclass-builtins/Promise.case
// - src/subclass-builtins/default/statement.template
/*---
description: new SubPromise() instanceof Promise (Subclass instanceof Heritage)
features: [Promise]
flags: [generated]
---*/
class Subclass extends Promise {}
const sub = new Subclass(() => {});
assert(sub instanceof Subclass);
assert(sub instanceof Promise);