Skip to content

ABI: implement private JSArray constructors #182

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

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