Skip to content

WASI: Fix Platform.exit's infinite recursion#520

Merged
natecook1000 merged 1 commit into
apple:mainfrom
kkebo:patch-1
Nov 14, 2022
Merged

WASI: Fix Platform.exit's infinite recursion#520
natecook1000 merged 1 commit into
apple:mainfrom
kkebo:patch-1

Conversation

@kkebo
Copy link
Copy Markdown
Contributor

@kkebo kkebo commented Nov 13, 2022

This issue was introduced by #504.

When the target platform is WASI, Platform.exit causes infinite recursion because it calls itself.

Checklist

  • I've added at least one test that validates that my change is working, if appropriate
  • I've followed the code style of the rest of the project
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary

@kkebo kkebo changed the title WASI: Fix Platform.exit WASI: Fix Platform.exit's infinite recursion Nov 13, 2022
@natecook1000
Copy link
Copy Markdown
Member

@swift-ci Please test

@natecook1000
Copy link
Copy Markdown
Member

Thanks, @KKK669!

@natecook1000 natecook1000 merged commit 208594a into apple:main Nov 14, 2022
@kkebo kkebo deleted the patch-1 branch March 22, 2024 17:47
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.

2 participants