MCPcopy
hub / github.com/patriksimek/vm2 / set

Method set

lib/script.js:191–200  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

189 return this._prefix + this._code + this._suffix;
190 },
191 set(value) {
192 const strNewCode = String(value);
193 if (strNewCode === this._code && this._prefix === '' && this._suffix === '') return;
194 this._code = strNewCode;
195 this._prefix = '';
196 this._suffix = '';
197 this._compiledVM = null;
198 this._compiledNodeVM = null;
199 this._compiledCode = null;
200 },
201 enumerable: true
202 },
203 filename: {

Callers 8

readScriptMethod · 0.45
readPackageMethod · 0.45
initFunction · 0.45
addDefaultBuiltinFunction · 0.45
setup-sandbox.jsFile · 0.45
registerModuleMethod · 0.45
addObjFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected