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 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
- for (const arg of args) {
3201
- if (arg && arg instanceof DdbObj)
3202
- has_ddbobj = true;
3203
- else {
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
- simple = false;
3208
- break;
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 原生对象'));