Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 502e1e64eda9aefa1989b78ea3e37f84ae4409b6..16f41c2ab71c9b4aab697b1973ccc0e8a10b3ccc 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -3203,7 +3203,8 @@ Expression* Parser::ParseUnaryExpression(bool* ok) { |
if (op == Token::NOT) { |
// Convert the literal to a boolean condition and negate it. |
bool condition = literal->ToBoolean()->IsTrue(); |
- Handle<Object> result(isolate()->heap()->ToBoolean(!condition)); |
+ Handle<Object> result(isolate()->heap()->ToBoolean(!condition), |
+ isolate()); |
return factory()->NewLiteral(result); |
} else if (literal->IsNumber()) { |
// Compute some expressions involving only number literals. |