Fix vms.get()

This commit is contained in:
coolreader18 committed 2019-01-30 12:30:56 -06:00
1 parent 4020ee7d41
commit 13b2f83084
1 file changed
+1 -1
+1 -1
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