Skip to content

v8 boundary: method calls on returned objects #618

@cs01

Description

@cs01

Pragma returns an object with methods. Native caller can't invoke obj.foo().

Ask

  • New bridge fn cs_v8_handle_call_method(h, name, n_args, arr) -> handle
  • Marshal synth reads declared interface type of returned object, exposes methods as native-callable
  • Works alongside v8 boundary: callbacks native→JS #622 object field walking

Est

~300-500 LOC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststatus:plannedTracked, not scheduledv8-escape-hatchPragma / libnode / JSHandle marshalling work

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions