dolphindb 3.0.109 → 3.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser.js +10 -9
- package/browser.js.map +1 -1
- package/index.js +10 -9
- package/index.js.map +1 -1
- package/package.json +1 -1
package/browser.js
CHANGED
|
@@ -3197,18 +3197,19 @@ export class DDB {
|
|
|
3197
3197
|
// 逻辑类似 DdbObj.to_ddbobjs, 需要同步修改
|
|
3198
3198
|
let simple = true;
|
|
3199
3199
|
let has_ddbobj = false;
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
const type = typeof arg;
|
|
3205
|
-
if (type === 'string' || type === 'boolean') { }
|
|
3200
|
+
if (args)
|
|
3201
|
+
for (const arg of args) {
|
|
3202
|
+
if (arg && arg instanceof DdbObj)
|
|
3203
|
+
has_ddbobj = true;
|
|
3206
3204
|
else {
|
|
3207
|
-
|
|
3208
|
-
|
|
3205
|
+
const type = typeof arg;
|
|
3206
|
+
if (type === 'string' || type === 'boolean') { }
|
|
3207
|
+
else {
|
|
3208
|
+
simple = false;
|
|
3209
|
+
break;
|
|
3210
|
+
}
|
|
3209
3211
|
}
|
|
3210
3212
|
}
|
|
3211
|
-
}
|
|
3212
3213
|
if (!simple) {
|
|
3213
3214
|
if (has_ddbobj)
|
|
3214
3215
|
throw new Error(t('调用 ddb.invoke 的参数中不能同时有 DdbObj 与复杂 js 原生对象'));
|