Chakra Node-API conformance defects
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
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.
Written by the indexing model from the issue text.
Description
[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_dateornapi_get_date_value, so thetest_dateaddon cannot load and is not built. Skipstest_date/. -
napi_define_classdereferences a NULL properties array and crashes. Skipstest_constructor/test.jsandtest_constructor/test_null.js. - Read-only assignment errors use different message text from V8's, which
test_constructor/test.jsalso asserts. -
napi_get_value_int64casts out-of-range doubles instead of saturating. Skipstest_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_infoaccepts only DataViews created bynapi_create_dataview. Skipstest_dataview/test.js. -
napi_create_functionaccepts a NULL callback, and returning from a callback with an exception pending crashes. Skipstest_function/test.js. -
napi_add_finalizeris not implemented. Skipstest_general/testFinalizer.js. -
napi_instanceofignoresSymbol.hasInstance. Skipstest_general/testInstanceOf.js. -
napi_run_scriptreturnsnapi_invalid_arginstead ofnapi_string_expectedfor a non-string script. Skipstest_general/testNapiRun.js.
- Dominant language
- C++
- Stars
- 931
- Forks
- 169
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 66
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BabylonJS/BabylonNative
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
BabylonJS/BabylonNative#2138 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BabylonJS/BabylonNative#2042 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
BabylonJS/BabylonNative#2052 ·
Maintainers usually reply within 1 day
-
testing
Difficulty 4/5 3-5 days Newbie friendliness 45/100
BabylonJS/BabylonNative#2136 ·
Maintainers usually reply within 1 day
-
Support useNDCHalfZRange (half-range NDC depth) so Babylon.js half-range depth visual tests can runOpen
Difficulty 4/5 3-5 days Newbie friendliness 48/100
BabylonJS/BabylonNative#2134 ·
Maintainers usually reply within 1 day
All issues in BabylonJS/BabylonNative
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gofractally/psibase#2379 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
simnJS/AnyPS5#735 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-format
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Niko1221/Strata#7719 · 1 comment ·
Maintainers usually reply within 4 days