Chakra Node-API conformance defects

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

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

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

評価

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

調査の方向性

Start with the exclusions in Dependencies/JsRuntimeHost/Tests/NodeApi/test_main.cpp and the Chakra implementation at Dependencies/JsRuntimeHost/Core/Node-API/Source/js_native_api_chakra.cc; inspect the listed Node-API tests for each defect. Fixing this spans multiple APIs and behaviors, so take one checklist item at a time and remove its exclusion when fixed. Done means the corresponding conformance test runs and passes on Chakra.

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

説明

[Filed by Copilot on behalf of @bghgary]

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

  • There is no napi_create_date, napi_is_date or napi_get_date_value, so the test_date addon cannot load and is not built. Skips test_date/.
  • napi_define_class dereferences a NULL properties array and crashes. Skips test_constructor/test.js and test_constructor/test_null.js.
  • Read-only assignment errors use different message text from V8's, which test_constructor/test.js also asserts.
  • napi_get_value_int64 casts out-of-range doubles instead of saturating. Skips test_number/test.js.
  • A successful call does not clear the last error, and string getters check the length pointer before the value type. Skips test_conversions/test.js.
  • napi_get_dataview_info accepts only DataViews created by napi_create_dataview. Skips test_dataview/test.js.
  • napi_create_function accepts a NULL callback, and returning from a callback with an exception pending crashes. Skips test_function/test.js.
  • napi_add_finalizer is not implemented. Skips test_general/testFinalizer.js.
  • napi_instanceof ignores Symbol.hasInstance. Skips test_general/testInstanceOf.js.
  • napi_run_script returns napi_invalid_arg instead of napi_string_expected for a non-string script. 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 を短くまとめたダイジェスト。