File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,9 +65,6 @@ func (e *JSEngine) init() {
6565 e .vm = goja .New ()
6666
6767 e .registerCoreFunctions ()
68- if e .config .AutoInjectMethods {
69- e .injectAllMethods ()
70- }
7168}
7269
7370func (e * JSEngine ) GetVM () * goja.Runtime {
Original file line number Diff line number Diff line change @@ -43,10 +43,9 @@ type JSEngine struct {
4343// DefaultConfig 返回默认配置
4444func DefaultConfig () EngineConfig {
4545 return EngineConfig {
46- AutoInjectMethods : true ,
47- WhiteList : []string {}, // 默认为空,加载所有模块
48- BlackList : []string {}, // 默认为空,不跳过任何模块
49- FailFast : false , // 默认为 false,模块加载失败时跳过继续
46+ WhiteList : []string {}, // 默认为空,加载所有模块
47+ BlackList : []string {}, // 默认为空,不跳过任何模块
48+ FailFast : false , // 默认为 false,模块加载失败时跳过继续
5049 }
5150}
5251
Original file line number Diff line number Diff line change @@ -91,11 +91,11 @@ git commit -m "更新版本为 ${NEW_VERSION}
9191
9292- 更新所有 go.mod 文件
9393- 更新所有 README.md 文件
94- - Tag: $NEW_TAG "
94+ - Tag: $NEW_VERSION "
9595
9696# 推送 tag
9797echo " 推送 tag ${NEW_TAG} ..."
9898echo " git push origin ${NEW_VERSION} "
9999git push origin " ${NEW_VERSION} "
100100
101- echo " 完成!版本已从 $CURRENT_TAG 更新为 $NEW_TAG "
101+ echo " 完成!版本已从 $CURRENT_TAG 更新为 $NEW_VERSION "
You can’t perform that action at this time.
0 commit comments