Complete TC39 Extractors support in binding and assignment patterns
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript
- Lĩnh vực
- compilers, documentation, testing-qa
Hướng nghiên cứu
Bắt đầu bằng việc đối chiếu repository proposal và đặc tả hiện tại với PatternMatching, AST.BindingPatterns và Compiler.PatternMatching. Theo dõi hỗ trợ extractor hiện có và bổ sung phạm vi kiểm thử tập trung cho các trường hợp dương, âm, hoàn tất đột ngột, edge case, các trường hợp Test262/proposal được ghim, tài liệu và inventory của proposal. Hoàn tất khi protocol hiện tại, thứ tự đánh giá, lỗi, seam của engine dùng chung và hành vi match hiện có đều được bao phủ mà không gây regression.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Implement the Stage 2 TC39 proposal: https://github.com/tc39/proposal-extractors
Extend the existing protocol to proposal BindingPattern and AssignmentPattern forms, including qualified names, nesting, defaults, rest, and evaluation order.
Why
This proposal fits GocciaScript's modern ECMAScript surface and the 0.13.0 proposal roadmap. It should extend the engine's existing architecture rather than arrive as a userland shim.
Current behavior
Symbol.customMatcher and extractor match patterns already exist, but ordinary binding and assignment destructuring do not accept extractors.
Expected behavior
Extend the existing protocol to proposal BindingPattern and AssignmentPattern forms, including qualified names, nesting, defaults, rest, and evaluation order.
Scope notes
Treat this as completion, reusing PatternMatching, AST.BindingPatterns, and Compiler.PatternMatching. Reconcile upstream protocol drift before coding and preserve current match behavior. Additive syntax: no flag.
Related bytecode roadmap: #871 and #875. Update the relevant language/built-in documentation and Goccia proposal inventory. Use the proposal repository and its current specification at implementation time; add focused project tests and matching pinned Test262/proposal coverage without regressions.
Acceptance criteria
- Parser/API surface, descriptors, evaluation order, errors, and observable protocol behavior match the current proposal.
- Implementation uses the identified shared engine seam without a duplicate compatibility shim.
- Focused positive, negative, abrupt-completion, and edge-case tests cover the proposal.
- Relevant project suites, pinned Test262 cases, formatting, and documentation checks pass.
- Ngôn ngữ chính
- Pascal
- Star
- 20
- Fork
- 3
- Merge trung bình
- 3 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 51
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của frostney/GocciaScript
-
documentation internal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
frostney/GocciaScript#1271 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
internal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
frostney/GocciaScript#1187 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug internal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
frostney/GocciaScript#1129 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
engine
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
frostney/GocciaScript#1279 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
runtime
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
frostney/GocciaScript#1278 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của frostney/GocciaScript
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation self-host
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
JakeChampion/lang#10663 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày