Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 262ce278cf94cf256b5424a5261faa3f2f3cb121..1fff14f9485867aa84569d976cc71948c2886069 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -424,6 +424,7 @@ Expression* Parser::BuildUnaryExpression(Expression* expression, |
return factory()->NewBinaryOperation( |
Token::BIT_XOR, expression, factory()->NewNumberLiteral(~0, pos), pos); |
} |
+ |
return factory()->NewUnaryOperation(op, expression, pos); |
} |
@@ -2531,7 +2532,8 @@ FunctionLiteral* Parser::ParseFunctionLiteral( |
} |
FunctionLiteral::EagerCompileHint eager_compile_hint = |
- function_state_->next_function_is_parenthesized() |
+ (function_state_->next_function_is_parenthesized() || |
+ function_state_->next_function_is_exclaimed()) |
? FunctionLiteral::kShouldEagerCompile |
: default_eager_compile_hint(); |