summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-ast.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/test-ast.cc')
-rw-r--r--deps/v8/test/cctest/test-ast.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/deps/v8/test/cctest/test-ast.cc b/deps/v8/test/cctest/test-ast.cc
index c72f87ec3d..9f20110801 100644
--- a/deps/v8/test/cctest/test-ast.cc
+++ b/deps/v8/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());