V8 Node-API conformance defects

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp, javascript
領域
backend, testing

調査の方向性

Read Dependencies/JsRuntimeHost/Core/Node-API/Source/js_native_api_v8.cc alongside the V8 exclusions in Dependencies/JsRuntimeHost/Tests/NodeApi/test_main.cpp. Start with one listed conformance failure and run its named test to understand the expected Node-API behavior. Fix the V8 implementation, remove that test's exclusion, and confirm the test passes; the issue lists affected tests for each defect.

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

説明

[Filed by Copilot on behalf of @bghgary]

The Node-API conformance suite added in #2097 skips these tests on V8. Their exclusions in Dependencies/JsRuntimeHost/Tests/NodeApi/test_main.cpp link here; the implementation is Dependencies/JsRuntimeHost/Core/Node-API/Source/js_native_api_v8.cc. Remove an exclusion when its item is fixed, so the test guards the fix.

  • napi_wrap aborts on an object not created by napi_define_class. Skips test_function/test.js, test_general/test.js, test_general/testEnvCleanup.js, test_general/testFinalizer.js and test_reference_double_free/test_wrap.js.
  • napi_run_script aborts on a non-string script instead of returning napi_string_expected. Skips test_general/testNapiRun.js.
  • napi_get_version reports 9, but napi_get_all_property_names (version 6) is commented out. test_general/test.js expects 5, as the other JsRuntimeHost implementations report.
主要言語
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 を短くまとめたダイジェスト。