Index: src/func-name-inferrer.h |
=================================================================== |
--- src/func-name-inferrer.h (revision 1713) |
+++ src/func-name-inferrer.h (working copy) |
@@ -70,7 +70,8 @@ |
void SetFuncToInfer(FunctionLiteral* func_to_infer) { |
if (IsOpen()) { |
- ASSERT(func_to_infer_ == NULL); |
+ // If we encounter another function literal after already having |
+ // encountered one, the second one replaces the first. |
func_to_infer_ = func_to_infer; |
} |
} |