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

Function eval

ses.cjs:5126–5135  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

5124 // 'this' binding.
5125 const newEval= {
5126 eval(source) {
5127 if( typeof source!== 'string') {
5128 // As per the runtime semantic of PerformEval [ECMAScript 18.2.1.1]:
5129 // If Type(source) is not String, return source.
5130 // TODO Recent proposals from Mike Samuel may change this non-string
5131 // rule. Track.
5132 return source;
5133 }
5134 return safeEvaluate(source);
5135 }}.
5136 eval;
5137
5138 return newEval;

Callers

nothing calls this directly

Calls 1

safeEvaluateFunction · 0.85

Tested by

no test coverage detected