镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Bridge: implement JSExport, Objective-C blocks, and interop completion evidence #160

Closed

Description

@chrisbbreuer

Parent: #138
Depends on: Objective-C inventory, core behavior, and managed lifetime children

Complete callable/exported Objective-C interop and the final bridge evidence matrix.

Acceptance:

  • Implement Objective-C block to JavaScript callable conversion and JavaScript function to block/callable invocation with argument/return conversion and exception propagation.
  • Implement JSExport protocol discovery, inherited protocols/classes, instance/class methods, properties/accessors, initializers/constructors, selector-to-property naming, and JSExportAs.
  • Support the inventoried primitive, object, class-pointer, block, CGPoint/CGSize/CGRect/NSRange, date, collection, typed-array, and error conversions.
  • Preserve wrapper/prototype/constructor identity and method receiver semantics across contexts in one VM; reject cross-VM use.
  • Add Objective-C compile-link-runtime, system-JSC differential, autorelease/lifetime stress, sanitizer/leak, and zero-hidden inventory gates.
  • Update README/API docs and close Bridge: implement the Objective-C JavaScriptCore embedding surface #138 only when every inventoried entry and conversion row has evidence.

Activity

  1. chrisbbreuer commented on Jul 17, 2026

    @chrisbbreuer
    MemberAuthor

    Interop implementation and evidence are complete through 7b37b20: 108/108 declarations, 17-row system-JSC parity (189ef5b0eefd1054), same-VM cross-context exported receiver/constructor/prototype coverage, typed Objective-C blocks, JavaScript JSValue callable invocation, 200-cycle autorelease teardown, ASan+UBSan, and 0-byte Apple leak output. WebKit itself rejects block-typed JSExport arguments because Objective-C exposes only the opaque @? encoding; zig-js likewise avoids inventing an unsafe callable ABI. This issue remains open only to close parent #138 after #159 finishes conditional collection and fault-injection work.

  2. chrisbbreuer commented on Jul 17, 2026

    @chrisbbreuer
    MemberAuthor

    Completed through f29ca38. The bridge covers typed Objective-C blocks, JavaScript callable JSValue invocation, JSExport protocols/classes/properties/constructors/renames, all inventoried conversions, same-VM cross-context identity and receiver semantics, cross-VM rejection, 108/108 inventory, 18-row system-JSC parity (360c1ad3ccf51d6b), 200-cycle lifetime stress, ASan+UBSan, deterministic faults, 0-byte leaks, and published README/API reproduction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions