Function
pushEvalContext
(
ce: IComputeEngine,
scope: Scope,
name?: string
)
Source from the content-addressed store, hash-verified
| 25 | renewIterationActivation, |
| 26 | scopeActivationTemplate, |
| 27 | } from './boxed-expression/ambient-chain.js'; |
| 28 | import { _discardPendingSequencesOfScope } from './sequence.js'; |
| 29 | import { notePushedScope } from './pending-call-scopes.js'; |
| 30 | import { setHolderCounting } from './boxed-expression/definition-restore-point.js'; |
| 31 | |
| 32 | export function pushScope( |
| 33 | ce: IComputeEngine, |
| 34 | scope?: Scope, |
| 35 | name?: string |
| 36 | ): void { |
| 37 | pushEvalContext( |
| 38 | ce, |
| 39 | scope ?? { |
| 40 | parent: ce.context?.lexicalScope, |
| 41 | bindings: new Map(), |
| 42 | }, |
| 43 | name |
| 44 | ); |
| 45 | } |
| 46 | |
| 47 | /** |
Tested by
no test coverage detected