Deferred from PR #1350 review.
Original comment: #1350 (comment)
extractObjectRestParamBindingsWalk (Phase 8.3f) handles function_declaration, generator_function_declaration, and variable_declarator (arrow/function expressions), but not method_definition nodes inside class bodies or method shorthand inside object literals.
A pattern like:
class Foo {
bar({ a, ...rest }) {
rest.m(); // this edge is not resolved
}
}
would never emit a binding for bar because the extractor does not walk method_definition nodes.
Context: This is a known scope limitation of Phase 8.3f. It is out of scope for PR #1350 which focuses on the core function/arrow-function case. Extending coverage to class methods and object-literal method shorthand is a logical follow-up.
Deferred from PR #1350 review.
Original comment: #1350 (comment)
extractObjectRestParamBindingsWalk(Phase 8.3f) handlesfunction_declaration,generator_function_declaration, andvariable_declarator(arrow/function expressions), but notmethod_definitionnodes inside class bodies or method shorthand inside object literals.A pattern like:
would never emit a binding for
barbecause the extractor does not walkmethod_definitionnodes.Context: This is a known scope limitation of Phase 8.3f. It is out of scope for PR #1350 which focuses on the core function/arrow-function case. Extending coverage to class methods and object-literal method shorthand is a logical follow-up.