wasm/web: dead legacy `rt.array_join` and `rt.array_push_spread` imports in wasm_runtime.js

オープン 初心者向け
#15,115 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust, wasm
領域
backend

調査の方向性

crates/perry-codegen-wasm/src/wasm_runtime.jsから始め、359行目付近にあるrt.array_joinとrt.array_push_spreadの定義を調べてください。生成されたコードが呼び出しをmem_call経由で__memDispatchに渡すことを確認してから、未使用のimportを削除してください。両方の旧定義がなくなり、現在使われているdispatch経路が維持されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

area:compiler effort:S impact:low platform:wasm type:chore

crates/perry-codegen-wasm/src/wasm_runtime.js still defines handle-based rt.array_join (around line 359, joins with JSON.stringify) and rt.array_push_spread. Emitted code never calls them: every call goes through mem_call to __memDispatch. Their semantics now differ from the live paths fixed in #15051 and #15055, so they should be deleted rather than left to drift.

主要言語
Rust
スター
4.9k
フォーク
166
平均マージ
6時間 5分
マージ済み PR(30日)
949

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PerryTS/perry のほかの issue

PerryTS/perry の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。