// we need to find the 'detail' property on the main world wrapper and clone it.
v8::Local<v8::Value> mainWorldDetail = V8HiddenValue::getHiddenValueFromMainWorldWrapper(info.GetIsolate(), event, V8HiddenValue::detail(info.GetIsolate()));
if (!mainWorldDetail.IsEmpty())
- event->setSerializedDetail(SerializedScriptValue::createAndSwallowExceptions(mainWorldDetail, info.GetIsolate()));
+ event->setSerializedDetail(SerializedScriptValue::createAndSwallowExceptions(info.GetIsolate(), mainWorldDetail));
}
if (event->serializedDetail()) {
if (!detailsArg.IsEmpty()) {
V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), V8HiddenValue::detail(info.GetIsolate()), detailsArg);
if (DOMWrapperWorld::current(info.GetIsolate()).isIsolatedWorld())
- event->setSerializedDetail(SerializedScriptValue::createAndSwallowExceptions(detailsArg, info.GetIsolate()));
+ event->setSerializedDetail(SerializedScriptValue::createAndSwallowExceptions(info.GetIsolate(), detailsArg));
}
}