Hermes Node-API conformance defects

オープン
#2,126 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, javascript
領域
backend, testing

調査の方向性

Start with the exclusions in Dependencies/JsRuntimeHost/Tests/NodeApi/test_main.cpp and the pinned Hermes revision in Dependencies/JsRuntimeHost/CMakeLists.txt; then inspect the four skipped Node-API tests named in the issue. Determine which Hermes behavior or API declaration causes each failure, and run the conformance tests to check a fix. Done means the affected tests pass and their exclusions are removed.

索引モデルが issue の本文から書いたものです。

説明

[Filed by Copilot on behalf of @bghgary]

The Node-API conformance suite added in #2097 skips these tests on Hermes. Their exclusions in Dependencies/JsRuntimeHost/Tests/NodeApi/test_main.cpp link here. Hermes provides its own Node-API implementation (facebook/hermes, static_h branch, pinned in Dependencies/JsRuntimeHost/CMakeLists.txt). Remove an exclusion when its item is fixed, so the test guards the fix.

  • A napi_wrap finalizer runs only at env shutdown, not on garbage collection, when a result reference is requested. Skips 7_factory_wrap/test.js and 8_passing_wrapped/test.js.
  • napi_create_array_with_length throws a RangeError for the maximum array length (2^32-1) instead of returning an array. Skips test_array/test.js.
  • Read-only and getter-only assignment errors use different message text from V8's, which the test asserts. Skips test_constructor/test.js.
  • Hermes exports only the standard 3-argument napi_run_script, while BabylonNative's shared js_native_api.h declares only the 4-argument variant with source_url. Skips test_general/testNapiRun.js.
主要言語
C++
スター
931
フォーク
169
平均マージ
2日 17時間
マージ済み PR(30日)
66

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

BabylonJS/BabylonNative のほかの issue

BabylonJS/BabylonNative の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。