-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add a VirtualMachine class to the WASM library #267
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
4020ee7
Add a bare-bones VirtualMachine class to the WASM library
coolreader18 13b2f83
Fix vms.get()
coolreader18 f064bca
Add ids() function to VMStore and destroy() method to VirtualMachine
coolreader18 d0a4f9d
Make destroy() method public
coolreader18 b32b732
Run cargo fmt
coolreader18 136a476
Call assert_valid() in destroy()
coolreader18 f47864f
Return Ok(()) from destroy()
coolreader18 3bec226
Rename VMStore
coolreader18 f7c91c7
Add add_to_scope() method for WASM VM
coolreader18 de3762c
Add .run(); fix .addToScope(); add panic-catcher for debugging
coolreader18 a24cd83
Merge branch 'master' into wasm-vm-class
coolreader18 9b6516e
Allow closures to be passed from Python to JS if using a WASM VM
coolreader18 6851767
Fix RefCell borrowing errors
coolreader18 f55a8ea
Merge branch 'master' into wasm-vm-class
coolreader18 c83ff47
Fix error with new compile() and set_attr/item()
coolreader18 3e22c4f
Add print to default vm scope
coolreader18 a86069d
Store the WASM id in the VirtualMachine, add a (broken) fetch builtin
coolreader18 f00c3c8
Fix fetch builtin
coolreader18 00bc9e9
Convert fetch to use wasm_bindgen_futures
coolreader18 d0b4751
Remove the VM pointer from the map when it's dropped
coolreader18 7405c84
Add some more options to fetch()
coolreader18 b043f21
Fix js_py_typeerror
coolreader18 416f088
Convert `ArrayBuffer`s and `TypedArray`s to Python bytearrays
coolreader18 bead3f6
Fix conversion from ArrayBuffer, allow array_buffer in fetch
coolreader18 5244707
Add eval() method, rename run() to exec()
coolreader18 74e7131
Clean up some code
coolreader18 101ee77
Improve error messages
coolreader18 0d3d090
Convert pyEval to use a WASM VM, allowing closures and stuff
coolreader18 634571f
Remove WASM fetch builtin
coolreader18 8e5073e
Convert `bytes` and `bytearray`s to `Uint8Array`s
coolreader18 8c222af
Include details about thread_local! for WASM
coolreader18 9e17690
Use crate:: imports
coolreader18 65857e7
Merge
coolreader18 955d0b3
Merge branch 'master' into wasm-vm-class
coolreader18 7fa0a0c
Fix open in new make_module
coolreader18 09e2a7a
Add js_name for .set_stdout()
coolreader18 e0f222c
Don't hold on to a PyObjectRef from a python -> js closure
coolreader18 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add add_to_scope() method for WASM VM
- Loading branch information
commit f7c91c7df00bb01c1e9cbdaa6a2f6ee2fcd2c9b2
There are no files selected for viewing
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.