MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / evaluate

Function evaluate

ses.cjs:9210–9213  ·  view source on GitHub ↗

* @param {string} source is a JavaScript program grammar construction. * @param {object} [options] * @param {Array } [options.transforms] * @param {boolean} [options.sloppyGlobalsMode] * @param {object} [options.__moduleShimLexicals__] * @param {boo

(source, options=  {})

Source from the content-addressed store, hash-verified

9208 * @param {boolean} [options.__rejectSomeDirectEvalExpressions__]
9209 */
9210 evaluate(source, options= {}) {
9211 const compartmentFields= weakmapGet(privateFields, this);
9212 return compartmentEvaluate(compartmentFields, source, options);
9213 },
9214
9215 toString() {
9216 return '[object Compartment]';

Callers

nothing calls this directly

Calls 1

compartmentEvaluateFunction · 0.85

Tested by

no test coverage detected