Skip to content

Commit

Permalink
Boolean -> Value::Boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
vimirage authored Nov 10, 2023
1 parent 7c442bf commit f2d766a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub(crate) fn ordinary_to_primitive(
/// ### [7.1.2 ToBoolean ( argument )](https://tc39.es/ecma262/#sec-toboolean)
pub(crate) fn to_boolean(agent: &mut Agent, argument: Value) -> JsResult<bool> {
// 1. If argument is a Boolean, return argument.
if let Boolean(ret) = argument {
if let Value::Boolean(ret) = argument {
return Ok(ret);
}

Expand Down

0 comments on commit f2d766a

Please sign in to comment.