forked from emscripten-core/emscripten
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary try/catch in instantiateSync. NFC (emscripten-core…
…#19784) The catch only existed to handle cases where `IMPORTED_MEMORY` was set and `INITIAL_MEMORY` was overridden at runtime to a value that was too low. This is such a rare setup that I don't believe it warrents this special case. In the past, setting `INITIAL_MEMORY` at runtime was more common, but since `IMPORTED_MEMORY` now defaults to false `INITIAL_MEMORY` is not valid at all for most users. Also, the default error message from the runtime seems seems clear enough. Also, simply and if-after-else. Also, rename getBinary to getBinarySync, so it explicitly contrasts with the other getBinaryPromise.
- Loading branch information
Showing
5 changed files
with
43 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
59177 | ||
59169 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
32474 | ||
32466 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
58143 | ||
58135 |
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