issue #22434:make some execute funs into one funs in ScriptEngineProtocol