-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm] preparation for module encapsulation #60928
Merged
Merged
Conversation
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
pavelsavara
added
arch-wasm
WebAssembly architecture
area-System.Runtime.InteropServices.JavaScript
labels
Oct 27, 2021
Tagging subscribers to 'arch-wasm': @lewing Issue Details
|
kg
requested changes
Oct 27, 2021
pavelsavara
force-pushed
the
wasm_encapsulate_prep
branch
from
October 28, 2021 08:35
7c95dba
to
64e59de
Compare
kg
approved these changes
Oct 28, 2021
- clarified runtime-test.js based on Daniel's draft. - extracted mono_wasm_invoke_js and mono_wasm_compile_function out of C macro into proper .ts function - wrapped access to API via globalThis with warning on first use - added cwraps.mono_wasm_add_assembly and cwraps.mono_wasm_load_runtime which Blazor uses - fixed closures for generated functions, so that they don't use global Module reference - mono_wasm_invoke_js now uses new Function instead of eval() - removed deprecated Blazor functions - fixed lint issues Co-authored-by: Daniel Genkin <[email protected]>
pavelsavara
force-pushed
the
wasm_encapsulate_prep
branch
from
October 28, 2021 20:06
64e59de
to
930a791
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
runtime-test.js
based on Daniel's draft.mono_wasm_invoke_js
andmono_wasm_compile_function
out of C macro into proper .ts functionglobalThis
with warning on first usecwraps.mono_wasm_add_assembly
andcwraps.mono_wasm_load_runtime
which Blazor usesModule
referencemono_wasm_invoke_js
now usesnew Function
instead ofeval()