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 +2 -0
- package/browser.js.map +1 -1
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2980,6 +2980,7 @@ export class DDB {
|
|
|
2980
2980
|
case 'function':
|
|
2981
2981
|
if (this.verbose)
|
|
2982
2982
|
console.log(func + inspect(args, { colors: false }) + rpc_id);
|
|
2983
|
+
assert(!func.includes('\0'), t('发送至 DolphinDB 执行的脚本中间不能含有 \\0'));
|
|
2983
2984
|
return 'function\n' +
|
|
2984
2985
|
`${func}\n` +
|
|
2985
2986
|
`${args.length}\n` +
|
|
@@ -2987,6 +2988,7 @@ export class DDB {
|
|
|
2987
2988
|
case 'script':
|
|
2988
2989
|
if (this.verbose)
|
|
2989
2990
|
console.log(script + rpc_id);
|
|
2991
|
+
assert(!script.includes('\0'), t('发送至 DolphinDB 执行的脚本中间不能含有 \\0'));
|
|
2990
2992
|
return 'script\n' +
|
|
2991
2993
|
script;
|
|
2992
2994
|
case 'variable':
|