sandbox 加入 lodash

This commit is contained in:
fofolee 2022-04-21 10:56:39 +08:00
parent 1edd928927
commit d53c3580ce

View File

@ -475,12 +475,12 @@ let getSandboxFuns = () => {
axios: axios, axios: axios,
Audio: Audio, Audio: Audio,
fetch: fetch, fetch: fetch,
_: _,
// 兼容老版本 // 兼容老版本
fs: fs, fs: fs,
path: path, path: path,
os: os, os: os,
child_process: child_process, child_process: child_process,
util: util,
} }
shortCodes.forEach(f => { shortCodes.forEach(f => {
sandbox[f.name] = f sandbox[f.name] = f