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 d7c50830503ce49944d5b5a6e2d9e4579395f954..f42690587502aee6abe431f600852c1590ea599e 100644 |
--- a/test/cctest/test-func-name-inference.cc |
+++ b/test/cctest/test-func-name-inference.cc |
@@ -70,7 +70,7 @@ static void CheckFunctionName(v8::Handle<v8::Script> script, |
// 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, |