Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building Wasm32 on Crystal 1.6 (Regression) #12580

Merged

Conversation

lbguilherme
Copy link
Contributor

The PR #11991 redefined Crystal::System::FileDescriptor.system_info such that it would always fail with NotImplementedError. The original definition from "../unix/file_descriptor" works correcly and there is no need to disable this funcionality.

In fact, this change prevents STDOUT, STDERR and STDIN from been created and prevent any Wasm32 program from running 😱.

I already included this particular fix on #12571, and merging that will also prevent errors such as this from happening again. But I'm opening this PR as a regression fix in hope that this can be released as 1.6.1, otherwise WebAssembly will be unusable until 1.7.

@Blacksmoke16 Blacksmoke16 added kind:bug kind:regression Something that used to correctly work but no longer works platform:wasm labels Oct 9, 2022
@straight-shoota straight-shoota added this to the 1.6.1 milestone Oct 10, 2022
@straight-shoota straight-shoota merged commit dd1c6d5 into crystal-lang:master Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug kind:regression Something that used to correctly work but no longer works platform:wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants