Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ fn object_define_properties<'gc>(
descriptors.push(Some(desc));
}
// 5. For each element property of descriptors, do
for (property_key, property_descriptor) in keys.iter(agent).zip(descriptors.into_iter()) {
for (property_key, property_descriptor) in keys.iter(agent).zip(descriptors) {
let Some(property_descriptor) = property_descriptor else {
continue;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ impl JSONObject {
// b. Set spaceMV to min(10, spaceMV).
// c. If spaceMV < 1, let gap be the empty String; otherwise let gap be the String value containing spaceMV occurrences of the code unit 0x0020 (SPACE).
let space_mv = space_mv.into_i64().clamp(0, 10) as usize;
" ".repeat(space_mv as usize).into()
" ".repeat(space_mv).into()
} else if let Ok(space) = String::try_from(space) {
// 8. Else if space is a String, then
let space = space.to_string_lossy_(agent);
Expand Down
Loading