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/index.js CHANGED
@@ -3175,18 +3175,19 @@ export class DDB {
3175
3175
  // 逻辑类似 DdbObj.to_ddbobjs, 需要同步修改
3176
3176
  let simple = true;
3177
3177
  let has_ddbobj = false;
3178
- for (const arg of args) {
3179
- if (arg && arg instanceof DdbObj)
3180
- has_ddbobj = true;
3181
- else {
3182
- const type = typeof arg;
3183
- if (type === 'string' || type === 'boolean') { }
3178
+ if (args)
3179
+ for (const arg of args) {
3180
+ if (arg && arg instanceof DdbObj)
3181
+ has_ddbobj = true;
3184
3182
  else {
3185
- simple = false;
3186
- break;
3183
+ const type = typeof arg;
3184
+ if (type === 'string' || type === 'boolean') { }
3185
+ else {
3186
+ simple = false;
3187
+ break;
3188
+ }
3187
3189
  }
3188
3190
  }
3189
- }
3190
3191
  if (!simple) {
3191
3192
  if (has_ddbobj)
3192
3193
  throw new Error(t('调用 ddb.invoke 的参数中不能同时有 DdbObj 与复杂 js 原生对象'));