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

Does `task.return`'s memory strictly match the canon-lifted function, or only match when present?

Đang mở
#749 1 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
18/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ệ
wasm
Lĩnh vực
api

Hướng nghiên cứu

The check lhs.memory is rhs.memory for task.return is in the spec text on async canonical built-ins, and the mismatch is at test/async/cross-abi-calls.wast around line 143. Read the validation rules for task.return and canon lift, then the test, to see where the memory check applies. Done means maintainers decide whether the spec text or the test changes, and a follow-up change makes the two agree. The open question is a design decision, so confirm the direction in the thread before writing any change.

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

Mô tả

Currently the spec indicates that the check to perform is lhs.memory is rhs.memory, and my understanding of this is that the two need to be strictly equal (if one's specified the other must be, etc). My understanding is that this additionally needs to be checked even if the result type doesn't need a memory.

However test/async/cross-abi-calls.wast currently has a mismatch here where task.return does not contain memory but the canon lifted function does.

IIRC we discussed this in the past but I'm kind of forgetting the outcomes -- is this something where the spec text needs an update? Or the tests?

Ngôn ngữ chính
WebAssembly
Star
1.4k
Fork
132
Merge trung bình
4 ngày
Pull request đã merge (30 ngày)
12

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 WebAssembly/component-model

Tất cả issue của WebAssembly/component-model

Issue tương tự

Thêm issue về Backend & API Design

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.