mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Rename VMStore
This commit is contained in:
@@ -9,10 +9,10 @@ thread_local! {
|
||||
static STORED_VMS: RefCell<HashMap<String, VirtualMachine>> = RefCell::default();
|
||||
}
|
||||
|
||||
#[wasm_bindgen(js_name = vms)]
|
||||
#[wasm_bindgen(js_name = vmStore)]
|
||||
pub struct VMStore;
|
||||
|
||||
#[wasm_bindgen(js_class = vms)]
|
||||
#[wasm_bindgen(js_class = vmStore)]
|
||||
impl VMStore {
|
||||
pub fn init(id: String) -> WASMVirtualMachine {
|
||||
STORED_VMS.with(|cell| {
|
||||
|
||||
Reference in New Issue
Block a user