Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 3bce6ccb32cb9844164ff7f6190f2b52632a6af0..b53fc4d7586b7c83af1c760a534ea72f9dc10455 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -38,7 +38,6 @@ |
#include "src/ast/ast.h" |
#include "src/compiler.h" |
#include "src/execution.h" |
-#include "src/flags.h" |
#include "src/isolate.h" |
#include "src/objects.h" |
#include "src/parsing/parse-info.h" |
@@ -3417,14 +3416,7 @@ |
bool expected = outers[i].assigned || inners[j].assigned; |
CHECK(var != NULL); |
CHECK(var->is_used() || !expected); |
- bool is_maybe_assigned = var->maybe_assigned() == i::kMaybeAssigned; |
- if (i::FLAG_lazy_inner_functions) { |
- // If we parse inner functions lazily, allow being pessimistic about |
- // maybe_assigned. |
- CHECK(is_maybe_assigned || (is_maybe_assigned == expected)); |
- } else { |
- CHECK(is_maybe_assigned == expected); |
- } |
+ CHECK((var->maybe_assigned() == i::kMaybeAssigned) == expected); |
} |
} |
} |