Skip to content

ABI: implement private ToObject and prototype queries #178

Description

@chrisbbreuer

Parents: #163, #164
Depends on: #175, #176

Implement the shared private ToObject and prototype-query boundary.

Acceptance:

  • Export exact JSC__JSValue__toObject and JSC__JSValue__getPrototype signatures.
  • Preserve identity for ordinary objects and perform exact realm-aware ToObject boxing for Number, Boolean, String, Symbol, and BigInt primitives.
  • Reject null and undefined through the private null/empty failure boundary.
  • Return exact ordinary, null, function, wrapper, and proxy-observed prototypes.
  • Reject invalid and foreign-context values safely.
  • Cover exact signatures, object identity, all primitive wrapper kinds, null prototypes, and proxy traps in the compile-link-runtime fixture.
  • Update both inventories and README/API documentation without changing public/extension counts.

Activity

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