mirror of https://github.com/tc39/test262.git
16 lines
431 B
JavaScript
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);
|