Index: test/cctest/test-func-name-inference.cc |
diff --git a/test/cctest/test-func-name-inference.cc b/test/cctest/test-func-name-inference.cc |
index 24f9c73532fee85aca402c808732841f0528b78b..ae8e77d745b14f07b30028fb49d352f336c4aa4e 100644 |
--- a/test/cctest/test-func-name-inference.cc |
+++ b/test/cctest/test-func-name-inference.cc |
@@ -81,11 +81,9 @@ static void CheckFunctionName(v8::Handle<v8::Script> script, |
// Obtain SharedFunctionInfo for the function. |
isolate->debug()->PrepareForBreakPoints(); |
- Object* shared_func_info_ptr = |
- isolate->debug()->FindSharedFunctionInfoInScript(i_script, func_pos); |
- CHECK(shared_func_info_ptr != CcTest::heap()->undefined_value()); |
- Handle<SharedFunctionInfo> shared_func_info( |
- SharedFunctionInfo::cast(shared_func_info_ptr)); |
+ Handle<SharedFunctionInfo> shared_func_info = |
+ Handle<SharedFunctionInfo>::cast( |
+ isolate->debug()->FindSharedFunctionInfoInScript(i_script, func_pos)); |
// Verify inferred function name. |
SmartArrayPointer<char> inferred_name = |