Ship an Intl-enabled engine

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

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
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cmake, javascript, rust, wasm
Lĩnh vực
build-system, cli

Hướng nghiên cứu

First check whether a StarlingMonkey release includes #368, since this change depends on it. Read the existing engine build configuration and the jco CLI option handling, then trace how the current engine is selected through --engine. Done means the build produces the Intl and weval Intl variants, and enableIntl (default false) plus --intl select them.

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

Mô tả

The shipped engines are built with --without-intl-api, so /\p{L}/u is a parse-time SyntaxError, and String.prototype.normalize and Intl are missing.

StarlingMonkey #368 (refs #45) adds an opt-in ENABLE_INTL CMake option, with prebuilt release_intl / release_weval_intl SpiderMonkey tarballs. An engine built with it works today through --engine. It is ~32 MB vs ~10.5 MB, mostly ICU data.

Once a StarlingMonkey release includes #368:

  • build starlingmonkey_embedding_intl.wasm (+ a weval variant)
  • add enableIntl (default false) to pick it, and --intl in jco

Happy to send the PR

Ngôn ngữ chính
Rust
Star
404
Fork
61
Merge trung bình
21 giờ 21 phút
Pull request đã merge (30 ngày)
3

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 bytecodealliance/ComponentizeJS

Tất cả issue của bytecodealliance/ComponentizeJS

Issue tương tự

Thêm issue về Rust

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.