Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some string optimizations #4030

Merged
merged 12 commits into from
Nov 11, 2024
Prev Previous commit
Next Next commit
chore: remove unnecessary to_string
  • Loading branch information
CrazyboyQCD committed Nov 6, 2024
commit d287dc65e8fe34faba0a581c9e2dd8fabfd716a8
2 changes: 1 addition & 1 deletion core/engine/src/builtins/number/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ impl Number {
#[allow(clippy::wrong_self_convention)]
pub(crate) fn to_js_string(x: f64) -> JsString {
let mut buffer = ryu_js::Buffer::new();
js_string!(buffer.format(x).to_string())
js_string!(buffer.format(x))
}

/// `Number.prototype.toString( [radix] )`
Expand Down
Loading