Index: test/cctest/test-api.cc |
=================================================================== |
--- test/cctest/test-api.cc (revision 2510) |
+++ test/cctest/test-api.cc (working copy) |
@@ -6216,6 +6216,7 @@ |
THREADED_TEST(ExternalAllocatedMemory) { |
v8::HandleScope outer; |
+ v8::Persistent<Context> env = Context::New(); |
const int kSize = 1024*1024; |
CHECK_EQ(v8::V8::AdjustAmountOfExternalAllocatedMemory(kSize), kSize); |
CHECK_EQ(v8::V8::AdjustAmountOfExternalAllocatedMemory(-kSize), 0); |