function formatResult(error, object)
        {
            if (!error && object.type)
                callback(target.runtimeModel.createRemoteObject(object));
            else
                callback(target.runtimeModel.createRemoteObjectFromPrimitiveValue(WebInspector.UIString("Preview is not available")));
        }
@param {?Protocol.Error} error
@param {!RuntimeAgent.RemoteObject} object