-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: avoid leaving WASM code debris when
add_source
fails
With this change the emission of WASM code is the last step in the compilation process, after all fallible functions have been executed successfully. This way we prevent leaving WASM code debris when the compilation fails. In order to implement this change it was necessary to split the `Context` type into two new types `CompileContext` and `EmitContext`.
- Loading branch information
Showing
5 changed files
with
211 additions
and
183 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
Oops, something went wrong.