Index: test/cctest/test-ast.cc |
diff --git a/test/cctest/test-ast.cc b/test/cctest/test-ast.cc |
index c72f87ec3dee0fcc4d356a0a45bc1dedb3c1e36b..9f20110801db244c7b8a9e9ba7994dd3a7200594 100644 |
--- a/test/cctest/test-ast.cc |
+++ b/test/cctest/test-ast.cc |
@@ -40,9 +40,8 @@ TEST(List) { |
CHECK_EQ(0, list->length()); |
Isolate* isolate = Isolate::Current(); |
- Zone* zone = isolate->runtime_zone(); |
- ZoneScope zone_scope(zone, DELETE_ON_EXIT); |
- AstNodeFactory<AstNullVisitor> factory(isolate, zone); |
+ Zone zone(isolate); |
+ AstNodeFactory<AstNullVisitor> factory(isolate, &zone); |
AstNode* node = factory.NewEmptyStatement(); |
list->Add(node); |
CHECK_EQ(1, list->length()); |