Index: test/cctest/test-ast.cc |
diff --git a/test/cctest/test-ast.cc b/test/cctest/test-ast.cc |
index 2aa72078afd529ebe78bc213512185466baceb52..80c7fdff7802115ca15845640954f1706aa68f06 100644 |
--- a/test/cctest/test-ast.cc |
+++ b/test/cctest/test-ast.cc |
@@ -1,4 +1,4 @@ |
-// Copyright 2006-2008 the V8 project authors. All rights reserved. |
+// Copyright 2012 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -40,7 +40,8 @@ TEST(List) { |
CHECK_EQ(0, list->length()); |
ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT); |
- AstNode* node = new(ZONE) EmptyStatement(); |
+ AstNodeFactory<AstNullVisitor> factory(Isolate::Current()); |
+ AstNode* node = factory.NewEmptyStatement(); |
list->Add(node); |
CHECK_EQ(1, list->length()); |
CHECK_EQ(node, list->at(0)); |