Hermes Node-API conformance defects

Đang mở
#2,126 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, javascript
Lĩnh vực
backend, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

[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.
Ngôn ngữ chính
C++
Star
931
Fork
169
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
66

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của BabylonJS/BabylonNative

Tất cả issue của BabylonJS/BabylonNative

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.