Skip to content

fix: rest parameter crash resolver#2748

Merged
HerrCai0907 merged 3 commits into
AssemblyScript:mainfrom
HerrCai0907:fix/#2707
Oct 7, 2023
Merged

fix: rest parameter crash resolver#2748
HerrCai0907 merged 3 commits into
AssemblyScript:mainfrom
HerrCai0907:fix/#2707

Conversation

@HerrCai0907

Copy link
Copy Markdown
Member

Fixes #2707

@CountBleck CountBleck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change in resolver.ts looks fine, but can't more functionality be tested (i.e. calling the function with 0-3 arguments)? If there are crashes from that, those should become errors.

@CountBleck

Copy link
Copy Markdown
Member

@HerrCai0907 Try git commit --amend --no-edit and git push -f to re-run CI.

@HerrCai0907

Copy link
Copy Markdown
Member Author

calling the function with 0-3 arguments

It is invalid code in current AS. rest parameter is not supported yet.

@CountBleck CountBleck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a func(1, 2, 3, 4) in the test. Then, the presence of the "Not implemented: Rest parameters" error can be checked in the stderr (and the 2707.{debug,release}.wat should be removed).

@HerrCai0907 HerrCai0907 requested a review from CountBleck October 3, 2023 00:38
@HerrCai0907 HerrCai0907 merged commit e3e4166 into AssemblyScript:main Oct 7, 2023
@HerrCai0907 HerrCai0907 deleted the fix/#2707 branch October 7, 2023 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants