阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js N-API napi_fatal_error

      Node.js N-API napi_fatal_error

      新增于: v8.2.0 N-API version: 1

      NAPI_NO_RETURN void napi_fatal_error(const char* location,
          size_t location_len,
          const char* message,
          size_t message_len);
      
      
      • [in] location: Optional location at which the error occurred.
      • [in] location_len: The length of the location in bytes, or NAPI_AUTO_LENGTH if it is null-terminated.
      • [in] message: The message associated with the error.
      • [in] message_len: The length of the message in bytes, or NAPI_AUTO_LENGTH if it is null-terminated.

      The function call does not return, the process will be terminated.

      This API can be called even if there is a pending JavaScript exception.


      更多内容请参考:Node.js N-API,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录