MCPcopy Index your code
hub / github.com/jabbany/CommentCoreLibrary / eval

Method eval

src/scripting/host/BridgedSandbox.ts:114–122  ·  view source on GitHub ↗
(code:string)

Source from the content-addressed store, hash-verified

112 }
113
114 public eval(code:string):void {
115 if (!this._isAvailable) {
116 throw new Error('Worker not available yet!');
117 }
118 this._worker.send({
119 'channel': '::eval',
120 'payload': code
121 });
122 }
123
124 public reset():void {
125 this._isAvailable = false;

Callers

nothing calls this directly

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected