Skip to content

fix: wrong order of resolving function expression and operands expression for call_indirect#2994

Open
Changqing-JING wants to merge 2 commits intoAssemblyScript:mainfrom
Changqing-JING:bugfix/2989
Open

fix: wrong order of resolving function expression and operands expression for call_indirect#2994
Changqing-JING wants to merge 2 commits intoAssemblyScript:mainfrom
Changqing-JING:bugfix/2989

Conversation

@Changqing-JING
Copy link
Copy Markdown
Contributor

@Changqing-JING Changqing-JING commented Mar 21, 2026

Fixes #2989

Changes proposed in this pull request:
Fix wrong order of resolving function expression and operands expression for call_indirect

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@Changqing-JING Changqing-JING changed the title Fix wrong order of resolving function expression and operands expression for call_indirect fix: wrong order of resolving function expression and operands expression for call_indirect Mar 21, 2026
Changqing-JING added a commit to wasm-ecosystem/warpo that referenced this pull request Mar 23, 2026
@Changqing-JING
Copy link
Copy Markdown
Contributor Author

Can some maintainer help to review this PR?

@MaxGraey MaxGraey requested review from CountBleck and HerrCai0907 and removed request for HerrCai0907 March 25, 2026 13:32
@HerrCai0907
Copy link
Copy Markdown
Member

It makes the semantics of as and ts more consistent, with a slight performance loss, yet I believe this trade-off is worthwhile. @MaxGraey WDYT?

@MaxGraey
Copy link
Copy Markdown
Member

I'm not sure. I think AssemblyScript provides much more obvious and logical approach. JavaScript has historically had a lot of quirks, and I think this is one of them. Also, it's breaking change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Function reference and parameter are resolved in wrong order.

3 participants