| 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 | |