Skip to content

Commit

Permalink
Remove invalid optimization in addition (#2387)
Browse files Browse the repository at this point in the history
This Pull Request changes the following:

- Remove invalid optimization in addition where `ToPrimitive` calls where skipped.
  • Loading branch information
raskad committed Oct 27, 2022
1 parent b67596b commit f446c09
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions boa_engine/src/value/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ impl JsValue {

// String concat
(Self::String(ref x), Self::String(ref y)) => Self::from(js_string!(x, y)),
(Self::String(ref x), y) => Self::from(js_string!(x, &y.to_string(context)?)),
(x, Self::String(ref y)) => Self::from(js_string!(&x.to_string(context)?, y)),

// Slow path:
(_, _) => match (
Expand Down

0 comments on commit f446c09

Please sign in to comment.