Fix vms.get()

This commit is contained in:
coolreader18
2019-01-30 12:30:56 -06:00
parent 4020ee7d41
commit 13b2f83084

View File

@@ -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