mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
fix windows fail, hope so
This commit is contained in:
1 parent
e93f98c52e
commit
e06afd2cc0
2 files changed
+3
-5
No files matched your search
@@ -248,10 +248,8 @@ mod _winapi {
|
||||
let keys = env.mapping().keys(vm)?;
|
||||
let values = env.mapping().values(vm)?;
|
||||
|
||||
let keys = PyListRef::try_from_object(vm, keys)?.borrow_vec().to_vec();
|
||||
let values = PyListRef::try_from_object(vm, values)?
|
||||
.borrow_vec()
|
||||
.to_vec();
|
||||
let keys = PySequence::try_from_object(vm, keys)?.into_vec();
|
||||
let values = PySequence::try_from_object(vm, values)?.into_vec();
|
||||
|
||||
if keys.len() != values.len() {
|
||||
return Err(
|
||||
|
||||
@@ -285,7 +285,7 @@ impl WASMVirtualMachine {
|
||||
}
|
||||
}
|
||||
|
||||
vm.run_code_obj(code, Scope::new(None, attrs.clone(), vm))
|
||||
vm.run_code_obj(code, Scope::new(None, attrs.clone()))
|
||||
.into_js(vm)?;
|
||||
|
||||
let module = vm.new_module(&name, attrs, None);
|
||||
|
||||
Reference in new issue
Block a user