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

16 lines
434 B
JavaScript
Raw Normal View History

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