diff --git a/nova_vm/src/ecmascript/abstract_operations/type_conversion.rs b/nova_vm/src/ecmascript/abstract_operations/type_conversion.rs index b6d8fb38..2dd35be9 100644 --- a/nova_vm/src/ecmascript/abstract_operations/type_conversion.rs +++ b/nova_vm/src/ecmascript/abstract_operations/type_conversion.rs @@ -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 { // 1. If argument is a Boolean, return argument. - if let Boolean(ret) = argument { + if let Value::Boolean(ret) = argument { return Ok(ret); }