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

ABI: implement private JSArray constructors #182

Closed

Description

@chrisbbreuer

Parents: #163, #164
Depends on: #180, #181

Implement the shared private JSArray construction boundary used directly by both pinned consumers.

Acceptance:

  • Export exact JSArray__constructArray and JSArray__constructEmptyArray signatures.
  • Construct fresh selected-realm arrays from a contiguous encoded-value slice in order, with packed own elements and exact length.
  • Construct fresh selected-realm empty arrays with exact logical holes for zero through maximum-u32 lengths.
  • Preserve immediate and owned-cell identity, including sibling-realm values from the same VM.
  • Publish invalid length, foreign-value, allocation, and abrupt failures through ABI: implement private VM pending exceptions #180 VM pending exceptions with an empty return.
  • Reject foreign-VM values safely without publishing a partially constructed array.
  • Cover exact signatures, order, identity, holes, realm prototypes, sibling values, maximum lengths, and failure atomicity 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.

    Evidence:

    • implementation: 51bd16e1 (feat(abi): add private JSArray constructors)
    • published ABI/README evidence: 7d522d3b
    • focused private runtime fixture: 47/47 symbols linked and passed
    • Home inventory: 49/432 implemented, 383 pending
    • Bun core inventory: 49/422 implemented, 373 pending
    • public/extension accounting remains 117/19
    • public C and Bun inventory audits pass with zero drift

    The fixture covers packed order, immediate and owned-cell identity, same-VM sibling values, selected-realm Array.prototype, hole-only zero/max-u32 lengths, foreign-value TypeError publication, invalid-length exception publication, and no partially exposed result.

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