Skip to content

Implement VM-stable private CommonStrings projection #378

Description

@chrisbbreuer

Parent: #134

Child of #140, #163, and #164. Implement Bun__CommonStringsForZig__toJS for the exact pinned 13-value u8 enum.

Acceptance:

  • Map all 13 enum values to the exact Bun strings: IPv4, IPv6, 127.0.0.1, ::, ipv4, ipv6, default, error, include, buffer, arraybuffer, nodebuffer, and uint8array.
  • Return one stable encoded JSString cell per value per VM across sibling realms; never share cells across VMs.
  • Reject invalid enum bytes and null/foreign globals deterministically.
  • Preserve pending exceptions and VM ownership.
  • Add exact declaration compile-link-runtime coverage in Debug and ReleaseSafe.
  • Refresh Home/Bun inventories, concise docs, CI if needed, and parent progress. Root benchmark scores remain unchanged without a new accepted run.

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