Index: Source/bindings/v8/custom/V8HistoryCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8HistoryCustom.cpp b/Source/bindings/v8/custom/V8HistoryCustom.cpp |
index edc5c001ac583db51247f3076e00351abb188261..5629df546ef0b16a8b83355c2de296d21054ff20 100644 |
--- a/Source/bindings/v8/custom/V8HistoryCustom.cpp |
+++ b/Source/bindings/v8/custom/V8HistoryCustom.cpp |
@@ -69,7 +69,7 @@ void V8History::pushStateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, title, info[1]); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, url, argumentOrNull(info, 2)); |
- ExceptionState es(info.GetIsolate()); |
+ ExceptionState es(info.Holder(), info.GetIsolate()); |
History* history = V8History::toNative(info.Holder()); |
history->stateObjectAdded(historyState.release(), title, url, SameDocumentNavigationPushState, es); |
info.Holder()->DeleteHiddenValue(V8HiddenPropertyName::state(info.GetIsolate())); |
@@ -86,7 +86,7 @@ void V8History::replaceStateMethodCustom(const v8::FunctionCallbackInfo<v8::Valu |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, title, info[1]); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullCheck>, url, argumentOrNull(info, 2)); |
- ExceptionState es(info.GetIsolate()); |
+ ExceptionState es(info.Holder(), info.GetIsolate()); |
History* history = V8History::toNative(info.Holder()); |
history->stateObjectAdded(historyState.release(), title, url, SameDocumentNavigationReplaceState, es); |
info.Holder()->DeleteHiddenValue(V8HiddenPropertyName::state(info.GetIsolate())); |