Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / bindings / v8 / custom / V8HistoryCustom.cpp
index c29cdbc..cf22ff5 100644 (file)
@@ -66,8 +66,8 @@ void V8History::pushStateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
     if (exceptionState.throwIfNeeded())
         return;
 
-    V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, title, info[1]);
-    V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, url, argumentOrNull(info, 2));
+    TOSTRING_VOID(V8StringResource<WithUndefinedOrNullCheck>, title, info[1]);
+    TOSTRING_VOID(V8StringResource<WithUndefinedOrNullCheck>, url, argumentOrNull(info, 2));
 
     History* history = V8History::toNative(info.Holder());
     history->stateObjectAdded(historyState.release(), title, url, UpdateBackForwardList, exceptionState);
@@ -82,8 +82,8 @@ void V8History::replaceStateMethodCustom(const v8::FunctionCallbackInfo<v8::Valu
     if (exceptionState.throwIfNeeded())
         return;
 
-    V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, title, info[1]);
-    V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, url, argumentOrNull(info, 2));
+    TOSTRING_VOID(V8StringResource<WithUndefinedOrNullCheck>, title, info[1]);
+    TOSTRING_VOID(V8StringResource<WithUndefinedOrNullCheck>, url, argumentOrNull(info, 2));
 
     History* history = V8History::toNative(info.Holder());
     history->stateObjectAdded(historyState.release(), title, url, DoNotUpdateBackForwardList, exceptionState);