Skip to content

ABI: implement private numeric DateInstance bridge #179

Description

@chrisbbreuer

Parents: #163, #164
Depends on: #172

Implement the shared private numeric DateInstance boundary.

Acceptance:

  • Export exact JSC__JSValue__dateInstanceFromNumber and JSC__JSValue__getUnixTimestamp signatures.
  • Create a real selected-realm Date object while preserving the supplied internal double without JavaScript constructor TimeClip.
  • Preserve fractional values, signed zero, NaN, infinities, and values outside the JavaScript TimeClip range.
  • Return NaN for non-Date and invalid inputs; accept every live owned Date cell because this getter has no global/VM parameter.
  • Cover exact signatures, Date.prototype identity, freshness, raw-double boundaries, and rejection cases in the compile-link-runtime fixture.
  • Keep string parsing, UTC/local conversion, and ISO formatting pending until their separate timezone/buffer contracts are exact.
  • 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