mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Fix vms.get()
This commit is contained in:
@@ -27,7 +27,7 @@ impl VMStore {
|
||||
pub fn get(id: String) -> JsValue {
|
||||
STORED_VMS.with(|cell| {
|
||||
let vms = cell.borrow();
|
||||
if !vms.contains_key(&id) {
|
||||
if vms.contains_key(&id) {
|
||||
WASMVirtualMachine { id }.into()
|
||||
} else {
|
||||
JsValue::UNDEFINED
|
||||
|
||||
Reference in New Issue
Block a user