Skip to content

Commit

Permalink
JsNumber::from -> JsNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
levi-nz committed Jul 16, 2024
1 parent 6565c28 commit 965b95b
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 @@ -231,7 +231,7 @@ mod test_js_number {
assert_eq!(JsNumber(-0.0).as_uint32(), 0);
assert_eq!(JsNumber(f64::INFINITY).as_uint32(), 0);
assert_eq!(JsNumber(f64::NEG_INFINITY).as_uint32(), 0);
assert_eq!(JsNumber::from(-8.0).as_uint32(), 4294967288);
assert_eq!(JsNumber(-8.0).as_uint32(), 4294967288);
}

#[test]
Expand Down

0 comments on commit 965b95b

Please sign in to comment.