Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index cf723bafbdaea1bd07e1079f08a8f8de337fbbd4..a9e28362f47349b6029041360f09f5c850fced7e 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -856,7 +856,7 @@ static void DebugEventRemoveBreakPoint(v8::DebugEvent event, |
if (event == v8::Break) { |
break_point_hit_count++; |
- v8::Handle<v8::Function> fun = v8::Handle<v8::Function>::Cast(data); |
+ v8::Handle<v8::Function> fun(v8::Handle<v8::Function>::Cast(data)); |
ClearBreakPoint(debug_event_remove_break_point); |
} |
} |
@@ -1447,8 +1447,8 @@ TEST(BreakPointSurviveGC) { |
// Test IC store break point with garbage collection. |
{ |
- v8::Local<v8::Function> bar = |
- CompileFunction(&env, "function foo(){}", "foo"); |
+ v8::Local<v8::Function> bar( |
+ CompileFunction(&env, "function foo(){}", "foo")); |
foo = CompileFunction(&env, "function foo(){bar=0;}", "foo"); |
SetBreakPoint(foo, 0); |
} |
@@ -1456,8 +1456,8 @@ TEST(BreakPointSurviveGC) { |
// Test IC load break point with garbage collection. |
{ |
- v8::Local<v8::Function> bar = |
- CompileFunction(&env, "function foo(){}", "foo"); |
+ v8::Local<v8::Function> bar( |
+ CompileFunction(&env, "function foo(){}", "foo")); |
foo = CompileFunction(&env, "bar=1;function foo(){var x=bar;}", "foo"); |
SetBreakPoint(foo, 0); |
} |
@@ -1465,8 +1465,8 @@ TEST(BreakPointSurviveGC) { |
// Test IC call break point with garbage collection. |
{ |
- v8::Local<v8::Function> bar = |
- CompileFunction(&env, "function foo(){}", "foo"); |
+ v8::Local<v8::Function> bar( |
+ CompileFunction(&env, "function foo(){}", "foo")); |
foo = CompileFunction(&env, |
"function bar(){};function foo(){bar();}", |
"foo"); |
@@ -1476,8 +1476,8 @@ TEST(BreakPointSurviveGC) { |
// Test return break point with garbage collection. |
{ |
- v8::Local<v8::Function> bar = |
- CompileFunction(&env, "function foo(){}", "foo"); |
+ v8::Local<v8::Function> bar( |
+ CompileFunction(&env, "function foo(){}", "foo")); |
foo = CompileFunction(&env, "function foo(){}", "foo"); |
SetBreakPoint(foo, 0); |
} |
@@ -1485,8 +1485,8 @@ TEST(BreakPointSurviveGC) { |
// Test non IC break point with garbage collection. |
{ |
- v8::Local<v8::Function> bar = |
- CompileFunction(&env, "function foo(){}", "foo"); |
+ v8::Local<v8::Function> bar( |
+ CompileFunction(&env, "function foo(){}", "foo")); |
foo = CompileFunction(&env, "function foo(){var bar=0;}", "foo"); |
SetBreakPoint(foo, 0); |
} |
@@ -3751,8 +3751,8 @@ TEST(BreakOnException) { |
v8::internal::Isolate::Current()->TraceException(false); |
// Create functions for testing break on exception. |
- v8::Local<v8::Function> throws = |
- CompileFunction(&env, "function throws(){throw 1;}", "throws"); |
+ v8::Local<v8::Function> throws( |
+ CompileFunction(&env, "function throws(){throw 1;}", "throws")); |
v8::Local<v8::Function> caught = |
CompileFunction(&env, |
"function caught(){try {throws();} catch(e) {};}", |
@@ -5547,10 +5547,10 @@ TEST(DebuggerUnload) { |
v8::HandleScope scope; |
// Get the test functions again. |
- v8::Local<v8::Function> foo = |
- v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("foo"))); |
- v8::Local<v8::Function> bar = |
- v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("foo"))); |
+ v8::Local<v8::Function> foo(v8::Local<v8::Function>::Cast( |
+ env->Global()->Get(v8::String::New("foo")))); |
+ v8::Local<v8::Function> bar(v8::Local<v8::Function>::Cast( |
+ env->Global()->Get(v8::String::New("foo")))); |
foo->Call(env->Global(), 0, NULL); |
CHECK_EQ(0, break_point_hit_count); |
@@ -6027,7 +6027,7 @@ TEST(DebugGetLoadedScripts) { |
EmptyExternalStringResource source_ext_str; |
v8::Local<v8::String> source = v8::String::NewExternal(&source_ext_str); |
- v8::Handle<v8::Script> evil_script = v8::Script::Compile(source); |
+ v8::Handle<v8::Script> evil_script(v8::Script::Compile(source)); |
Handle<i::ExternalTwoByteString> i_source( |
i::ExternalTwoByteString::cast(*v8::Utils::OpenHandle(*source))); |
// This situation can happen if source was an external string disposed |
@@ -6675,7 +6675,7 @@ static void BreakMessageHandler(const v8::Debug::Message& message) { |
break_point_hit_count++; |
v8::HandleScope scope; |
- v8::Handle<v8::String> json = message.GetJSON(); |
+ v8::Handle<v8::String> json(message.GetJSON()); |
SendContinueCommand(); |
} else if (message.IsEvent() && message.GetEvent() == v8::AfterCompile) { |
@@ -6686,7 +6686,7 @@ static void BreakMessageHandler(const v8::Debug::Message& message) { |
isolate->stack_guard()->DebugBreak(); |
// Force serialization to trigger some internal JS execution. |
- v8::Handle<v8::String> json = message.GetJSON(); |
+ v8::Handle<v8::String> json(message.GetJSON()); |
// Restore previous state. |
if (is_debug_break) { |