Skip to content

Commit 32497e2

Browse files
committed
fix: wrong impl on TryFrom<OwnedJsValue> for HashMap<K, V>
1 parent 1fc3f7b commit 32497e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/value/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ impl<K: From<String> + PartialEq + Eq + Hash, V: TryFrom<OwnedJsValue, Error = V
600600
fn try_from(value: OwnedJsValue) -> Result<Self, Self::Error> {
601601
let obj = value.try_into_object()?;
602602
let mut ret: HashMap<K, V> = HashMap::new();
603-
let mut iter = obj.properties_iter()?;
603+
let mut iter = obj.properties_iter()?.step_by(2);
604604
while let Some(Ok(key)) = iter.next() {
605605
let key = key.to_string()?;
606606
let item = obj.property(&key).unwrap();

0 commit comments

Comments
 (0)