Index: Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
index 7d83d856fc37bb3c41361a5217e89fd87a3336ef..7917ef8623679fd009bd7e1b8a397ea8d9da6d34 100644 |
--- a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
+++ b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
@@ -365,7 +365,7 @@ void V8InjectedScriptHost::setFunctionVariableValueMethodCustom(const v8::Functi |
{ |
v8::Handle<v8::Value> functionValue = info[0]; |
int scopeIndex = info[1]->Int32Value(); |
- String variableName = toWebCoreStringWithUndefinedOrNullCheck(info[2]); |
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, variableName, info[2]); |
v8::Handle<v8::Value> newValue = info[3]; |
InjectedScriptHost* host = V8InjectedScriptHost::toNative(info.Holder()); |
@@ -428,9 +428,10 @@ void V8InjectedScriptHost::monitorFunctionMethodCustom(const v8::FunctionCallbac |
if (!name->IsString() || !v8::Handle<v8::String>::Cast(name)->Length()) |
name = function->GetInferredName(); |
} |
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, nameResource, name); |
InjectedScriptHost* host = V8InjectedScriptHost::toNative(info.Holder()); |
- host->monitorFunction(scriptId, lineNumber, columnNumber, toWebCoreStringWithUndefinedOrNullCheck(name)); |
+ host->monitorFunction(scriptId, lineNumber, columnNumber, nameResource); |
} |
void V8InjectedScriptHost::unmonitorFunctionMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info) |