Skip to content

ABI: implement exact unhandled-rejection error-like classification #236

Description

@chrisbbreuer

Parent: #134
Related: #140, #163, #164

Implement the pinned Bun__promises__isErrorLike private-ABI boundary used to classify unhandled rejection reasons.

Acceptance

  • Return true only for JavaScript objects carrying an own stack property, whether data or accessor; inherited-only properties and primitives return false.
  • Match Object.prototype.hasOwnProperty observability for proxies: run [[GetOwnProperty]] exactly once, honor its invariants, and publish thrown/revoked-proxy failures through the VM pending-exception boundary.
  • Do not invoke an own accessor getter merely to detect its descriptor.
  • Accept values from sibling globals in the same VM, reject foreign-VM handles deterministically, and preserve an already-pending exception as first-wins state.
  • Add focused normal, no-GIL, and leak verification plus the pinned consumer compile/link/runtime fixture.
  • Update generated ABI inventories, README/docs counts, and parent issue evidence from committed artifacts.

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