// Find the position of a given func source substring in the source.
Handle<String> func_pos_str =
- factory->NewStringFromAscii(CStrVector(func_pos_src));
+ factory->NewStringFromAsciiChecked(func_pos_src);
int func_pos = Runtime::StringMatch(isolate,
script_src,
func_pos_str,
0);
CHECK_NE(0, func_pos);
-#ifdef ENABLE_DEBUGGER_SUPPORT
// Obtain SharedFunctionInfo for the function.
isolate->debug()->PrepareForBreakPoints();
Object* shared_func_info_ptr =
SmartArrayPointer<char> inferred_name =
shared_func_info->inferred_name()->ToCString();
CHECK_EQ(ref_inferred_name, inferred_name.get());
-#endif // ENABLE_DEBUGGER_SUPPORT
}