dolphindb 3.0.104 → 3.0.105

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
@@ -3002,6 +3002,7 @@ export class DDB {
3002
3002
  case 'function':
3003
3003
  if (this.verbose)
3004
3004
  console.log(func + args.map(arg => arg.toString()).join(', ').bracket() + rpc_id);
3005
+ assert(!func.includes('\0'), t('发送至 DolphinDB 执行的脚本中间不能含有 \\0'));
3005
3006
  return 'function\n' +
3006
3007
  `${func}\n` +
3007
3008
  `${args.length}\n` +
@@ -3009,6 +3010,7 @@ export class DDB {
3009
3010
  case 'script':
3010
3011
  if (this.verbose)
3011
3012
  console.log(script + rpc_id);
3013
+ assert(!script.includes('\0'), t('发送至 DolphinDB 执行的脚本中间不能含有 \\0'));
3012
3014
  return 'script\n' +
3013
3015
  script;
3014
3016
  case 'variable':