Index: test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
diff --git a/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc b/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
index 6bacbf39dbe59fa8b4aff096a7362b2386b7a781..589996989983ea033ea7ad325de486b0689b778f 100644 |
--- a/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
+++ b/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
@@ -170,13 +170,14 @@ TEST_F(CompilerDispatcherJobTest, ScopeChain) { |
job->PrepareToParseOnMainThread(); |
job->Parse(); |
ASSERT_TRUE(job->FinalizeParsingOnMainThread()); |
- ASSERT_TRUE(job->status() == CompileJobStatus::kReadyToAnalyse); |
+ ASSERT_TRUE(job->PrepareToCompileOnMainThread()); |
+ ASSERT_TRUE(job->status() == CompileJobStatus::kReadyToCompile); |
const AstRawString* var_x = |
job->parse_info_->ast_value_factory()->GetOneByteString("x"); |
Variable* var = job->parse_info_->literal()->scope()->Lookup(var_x); |
ASSERT_TRUE(var); |
- ASSERT_TRUE(var->IsUnallocated()); |
+ ASSERT_TRUE(var->IsParameter()); |
const AstRawString* var_g = |
job->parse_info_->ast_value_factory()->GetOneByteString("g"); |