本文整理汇总了C++中TestSerializedScriptValueInterface::multiTransferList方法的典型用法代码示例。如果您正苦于以下问题:C++ TestSerializedScriptValueInterface::multiTransferList方法的具体用法?C++ TestSerializedScriptValueInterface::multiTransferList怎么用?C++ TestSerializedScriptValueInterface::multiTransferList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestSerializedScriptValueInterface
的用法示例。
在下文中一共展示了TestSerializedScriptValueInterface::multiTransferList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsTestSerializedScriptValueInterfacePrototypeFunctionMultiTransferList
EncodedJSValue JSC_HOST_CALL jsTestSerializedScriptValueInterfacePrototypeFunctionMultiTransferList(ExecState* exec)
{
JSValue thisValue = exec->hostThisValue();
if (!thisValue.inherits(&JSTestSerializedScriptValueInterface::s_info))
return throwVMTypeError(exec);
JSTestSerializedScriptValueInterface* castedThis = jsCast<JSTestSerializedScriptValueInterface*>(asObject(thisValue));
ASSERT_GC_OBJECT_INHERITS(castedThis, &JSTestSerializedScriptValueInterface::s_info);
TestSerializedScriptValueInterface* impl = static_cast<TestSerializedScriptValueInterface*>(castedThis->impl());
size_t argsCount = exec->argumentCount();
if (argsCount <= 0) {
impl->multiTransferList();
return JSValue::encode(jsUndefined());
}
RefPtr<SerializedScriptValue> first(SerializedScriptValue::create(exec, MAYBE_MISSING_PARAMETER(exec, 0, DefaultIsUndefined), 0, 0));
if (exec->hadException())
return JSValue::encode(jsUndefined());
if (argsCount <= 1) {
impl->multiTransferList(first);
return JSValue::encode(jsUndefined());
}
Array* tx(toArray(MAYBE_MISSING_PARAMETER(exec, 1, DefaultIsUndefined)));
if (exec->hadException())
return JSValue::encode(jsUndefined());
if (argsCount <= 2) {
impl->multiTransferList(first, tx);
return JSValue::encode(jsUndefined());
}
RefPtr<SerializedScriptValue> second(SerializedScriptValue::create(exec, MAYBE_MISSING_PARAMETER(exec, 2, DefaultIsUndefined), 0, 0));
if (exec->hadException())
return JSValue::encode(jsUndefined());
if (argsCount <= 3) {
impl->multiTransferList(first, tx, second);
return JSValue::encode(jsUndefined());
}
Array* txx(toArray(MAYBE_MISSING_PARAMETER(exec, 3, DefaultIsUndefined)));
if (exec->hadException())
return JSValue::encode(jsUndefined());
impl->multiTransferList(first, tx, second, txx);
return JSValue::encode(jsUndefined());
}