mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
The merge of main left object literal methods without a `name`, since
main named them with SetFunctionName and the branch defines them through
InitMethod. Methods and accessors defined with a home object are now
named as they are defined: after their key, with `get ` or `set ` before
an accessor's name and a Symbol's description in brackets.
- A named class's constructor takes the class's name before its methods
are defined, so a static `name` member replaces it. An anonymous class
takes the name it is assigned to unless a static member defines `name`.
- Computed methods and accessors in object literals have the object as
their home object (new InitMethodKey), so `super` works in them.
- Class method keys and `super[key]` keep Symbol keys instead of
converting them to strings.
- Classes have generator methods (`*m() {}`); a generator constructor is
a syntax error.
- docs/target-app-parity.md and docs/mcp.md describe the new behavior;
the class line drops test262 counts measured before main added
destructuring, generators and function names.