V8 Node-API conformance defects

Aperta
#2,125 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
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp, javascript
Ambito
backend, testing

Direzione di ricerca

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.

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 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.
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.