Source code

Revision control

Copy as Markdown

Other Tools

// 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);
reportCompare(0, 0);