Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index efb80453e02117724dd5a33b5c07d1fdb6eed7b9..a968c3c77265f082ee3d234863596cb2d7ce6787 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -746,9 +746,9 @@ TEST(HeapSnapshotJSONSerialization) { |
stream.WriteTo(json); |
// Verify that snapshot string is valid JSON. |
- AsciiResource json_res(json); |
+ AsciiResource* json_res = new AsciiResource(json); |
v8::Local<v8::String> json_string = |
- v8::String::NewExternal(env->GetIsolate(), &json_res); |
+ v8::String::NewExternal(env->GetIsolate(), json_res); |
env->Global()->Set(v8_str("json_snapshot"), json_string); |
v8::Local<v8::Value> snapshot_parse_result = CompileRun( |
"var parsed = JSON.parse(json_snapshot); true;"); |