diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc index 79cdd365b6..05098a362d 100644 --- a/test/cctest/test-heap-profiler.cc +++ b/test/cctest/test-heap-profiler.cc @@ -781,7 +781,7 @@ TEST(HeapSnapshotObjectsStats) { CHECK_EQ(0, GetHeapStatsUpdate().numbers_written()); { v8::HandleScope inner_scope_1; - v8::Local string1 = v8_str("string1"); + v8_str("string1"); { // Single chunk of data with one new entry expected in update. TestStatsStream stats_update = GetHeapStatsUpdate(); @@ -797,13 +797,13 @@ TEST(HeapSnapshotObjectsStats) { { v8::HandleScope inner_scope_2; - v8::Local string2 = v8_str("string2"); + v8_str("string2"); uint32_t entries_size; { v8::HandleScope inner_scope_3; - v8::Handle string3 = v8::String::New("string3"); - v8::Handle string4 = v8::String::New("string4"); + v8_str("string3"); + v8_str("string4"); { // Single chunk of data with three new entries expected in update.