Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Complete TC39 Extractors support in binding and assignment patterns

Đang mở
#1,007 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 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

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ả

engine new feature spec compliance

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

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 frostney/GocciaScript

Tất cả issue của frostney/GocciaScript

Issue tương tự

Thêm issue về Compilers

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.