-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This uses `process.versions.node` to see if we are in Node.js rather than using `global.self` to check if we are in a Browser. This change also makes some minor `wasm_bindgen` improvements: - Use `js_sys::global()` to get the global object - Bind the node require as `module.require` - Improving error messages Signed-off-by: Joe Richey <joerichey@google.com>
- Loading branch information
Showing
2 changed files
with
49 additions
and
34 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