Fixed support for super.method() calls in arrow-function class fields on derived classes.
Full changelog
Fixed
- Support
super.method()inside arrow-function class fields on derived classes. - Bind
superfor prototype methods and class field initializers to parent prototype members with the derived instance as receiver. - Cover computed
super[...]()calls, async parent methods, multi-level inheritance chains, and constructorsuper(...)compatibility.
Verification
npm run buildpassed. Existingwang-prismCommonJS warning remains unchanged.npm test:54 passed,1359 passed | 4 skipped.- Issue #13 repro returns
base. npm pack --dry-runproducedjslike-1.8.5.tgz.- Published to npm as
[email protected]withlatestdist-tag.
Fixes #13.