Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Jul 16, 2024
1 parent adbeb7b commit 6db8424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_ecma_utils/src/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl JsNumber {
return 0;
}

self.as_int32()
self.0.trunc() as i32
}

// https://tc39.es/ecma262/#sec-touint32
Expand Down

0 comments on commit 6db8424

Please sign in to comment.