forked from rebolsource/r3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By default, Emscripten creates an object called "Module" which holds the Wasm heap, exported C-compiled functions, and helper routines. But if all emscripten codebases did this, you wouldn't be able to load two codebases in the same page because they would overwrite each other. This takes advantage of the "MODULARIZE=1" option in Emscripten, to name a function which gives a Promise back to make a module. This is then poked away inside the `reb` object, as `reb.m`. Also, this goes ahead and wraps up some miscellaneous global tables and puts them inside the `reb` object as well.
- Loading branch information
1 parent
3183acf
commit 0287faa
Showing
4 changed files
with
192 additions
and
150 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
Oops, something went wrong.