Skip to content

Commit bb9bb92

Browse files
committed
fix: logical not
1 parent ea66bdf commit bb9bb92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/jsshaker/src/nodes/expr/unary_expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl<'a> Analyzer<'a> {
5959
}
6060
UnaryOperator::UnaryPlus => argument.coerce_number(self),
6161
UnaryOperator::LogicalNot => {
62-
// let argument = argument.coerce_primitive(self);
62+
let argument = argument.coerce_primitive(self);
6363
self.factory.computed(
6464
match argument.test_truthy() {
6565
Some(value) => self.factory.boolean(!value),

0 commit comments

Comments
 (0)