dolphindb 2.0.972 → 2.0.973

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
@@ -2423,7 +2423,7 @@ class DDB {
2423
2423
  }
2424
2424
  })());
2425
2425
  // 使用资源发送请求并等待请求完成
2426
- const result = new Promise((resolve, reject) => {
2426
+ const result = await new Promise((resolve, reject) => {
2427
2427
  this.on_error = () => {
2428
2428
  // 这里一定有了 this.error, 不需要再 || new DdbConnectionError(this)
2429
2429
  reject(this.error);
@@ -2463,7 +2463,7 @@ class DDB {
2463
2463
  ]));
2464
2464
  });
2465
2465
  if (this.verbose)
2466
- console.log(result, rpc_id);
2466
+ console.log(result.toString() + rpc_id);
2467
2467
  return result;
2468
2468
  });
2469
2469
  }