-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid resetting process.exitCode when initializing HermesParserWASM (#…
…989) Summary: Pull Request resolved: #989 The default emscripten code overrides the `process.exitCode` value to `0` on module init. This means if someone has already set an `exitCode` it will be reset. This change fixes this by switching emscripten to use the `MODULARIZE` flag which allows us to pass in function overrides, we then pass a modified implementation of `quit` that only adds the exitCode if its non zero. Fixes: #978 Reviewed By: tmikov Differential Revision: D45705102 fbshipit-source-id: 915ef98348be0b6f6536ea902a8b62a10490a66b
- Loading branch information
1 parent
ae61ae2
commit d1be3ff
Showing
4 changed files
with
94 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters