Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 62b633ea2807f4edbfed4d6147196058f3745ec9..632215aaa11582238d0b3e1d339ceb84bcab915a 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -3212,7 +3212,7 @@ Expression* Parser::ParseUnaryExpression(bool* ok) { |
Handle<Object> literal = expression->AsLiteral()->handle(); |
if (op == Token::NOT) { |
// Convert the literal to a boolean condition and negate it. |
- bool condition = literal->ToBoolean()->IsTrue(); |
+ bool condition = literal->BooleanValue(); |
Handle<Object> result(isolate()->heap()->ToBoolean(!condition), |
isolate()); |
return factory()->NewLiteral(result); |