Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 02fc6d47a40025bdfce413f78b47a50af8fca010..aec3883082c74b0f547f6c5547ed2812eb25d1a0 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -1477,8 +1477,7 @@ TEST(DiscardFunctionBody) { |
fun = exp->AsObjectLiteral()->properties()->at(0)->value()-> |
AsFunctionLiteral(); |
} else { |
- fun = exp->AsClassLiteral()->properties()->at(0)->value()-> |
- AsFunctionLiteral(); |
+ fun = exp->AsDoExpression()->represented_function(); |
} |
} |
CHECK_NULL(fun->body()); |