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

Function allowNextEvalToBeUnsafe

ses.cjs:5621–5630  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5619 const evalScopeKit= {
5620 evalScope,
5621 allowNextEvalToBeUnsafe() {
5622 const { revoked}= evalScopeKit;
5623 if( revoked!== null) {
5624 Fail `a handler did not reset allowNextEvalToBeUnsafe ${revoked.err}`;
5625 }
5626 // Allow next reference to eval produce the unsafe FERAL_EVAL.
5627 // We avoid defineProperty because it consumes an extra stack frame taming
5628 // its return value.
5629 defineProperties(evalScope, oneTimeEvalProperties);
5630 },
5631 /** @type {null | { err: any }} */
5632 revoked: null};
5633

Callers

nothing calls this directly

Calls 1

FailFunction · 0.85

Tested by

no test coverage detected