V8 Node-API conformance defects

Abierto
#2,125 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp, javascript
Área
backend, testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

[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.
Lenguaje dominante
C++
Estrellas
931
Forks
169
Merge medio
2 d 17 h
PR fusionados (30 d)
66

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de BabylonJS/BabylonNative

Todos los issues de BabylonJS/BabylonNative

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.