Skip to content

Implement napi_fatal_error #65

Description

@kraenhansen
No description provided.

Activity

  1. self-assigned this
    on May 14, 2025
  2. mani3xis commented on May 16, 2025

    @mani3xis
    Contributor

    FYI: I will copy the implementation that I've used for my node-sodium demo.

  3. kraenhansen commented on Aug 12, 2026

    @kraenhansen
    CollaboratorAuthor

    Implemented in packages/host/cpp/RuntimeNodeApi.cpp: the location and message are logged through the host logger (the location is optional, matching the Node-API contract) and the process aborts, as napi_fatal_error is required to do.

    Hermes' first-party Node-API also implements it (API/napi/hermes_napi_error.cpp, adopted in #372); the host's definition currently shadows it in the generated injector, which keeps the message on the host's logging channel.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions