Hermes Node-API conformance defects

Aperta
#2,126 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, javascript
Ambito
backend, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

[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.
Lingua principale
C++
Stelle
931
Fork
169
Merge medio
2g 17h
PR unite (30g)
66

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BabylonJS/BabylonNative

Tutte le issue di BabylonJS/BabylonNative

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.