MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / execSync

Method execSync

src/interpreter/index.ts:120–126  ·  view source on GitHub ↗
(script?: Ast.Node[])

Source from the content-addressed store, hash-verified

118
119 @autobind
120 public execSync(script?: Ast.Node[]): Value | undefined {
121 if (script == null || script.length === 0) return;
122 this.collectNsSync(script);
123 const result = this._runSync(script, this.scope, []);
124 assertValue(result);
125 return result;
126 }
127
128 /**
129 * Executes AiScript Function.

Callers 1

exeSyncFunction · 0.95

Calls 3

collectNsSyncMethod · 0.95
_runSyncMethod · 0.95
assertValueFunction · 0.85

Tested by

no test coverage detected