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

ABI: implement private ToObject and prototype queries #178

Closed

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

  1. chrisbbreuer commented on Jul 17, 2026

    @chrisbbreuer
    MemberAuthor

    Implemented and documented on main in dacec16 and a2024aa. Focused evidence: Home 31/432 with 29/29 runtime symbols, Bun core 31/422, and public/extension accounting unchanged at 117/19.

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