Skip to content

Commit

Permalink
Merge 7daecba into 7248ed1
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat authored Mar 2, 2022
2 parents 7248ed1 + 7daecba commit dc17f79
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions boa_engine/src/property/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,13 +580,7 @@ impl From<PropertyKey> for JsValue {
match property_key {
PropertyKey::String(ref string) => string.clone().into(),
PropertyKey::Symbol(ref symbol) => symbol.clone().into(),
PropertyKey::Index(index) => {
if let Ok(integer) = i32::try_from(index) {
Self::new(integer)
} else {
Self::new(index)
}
}
PropertyKey::Index(index) => index.to_string().into(),
}
}
}
Expand Down

0 comments on commit dc17f79

Please sign in to comment.