newExecutionFrame creates an ExecutionFrame for the given input without a timeout context.
(input any)
| 558 | |
| 559 | // newExecutionFrame creates an ExecutionFrame for the given input without a timeout context. |
| 560 | func (p *prog) newExecutionFrame(input any) (*interpreter.ExecutionFrame, error) { |
| 561 | frame, err := interpreter.NewExecutionFrame(input) |
| 562 | if err != nil { |
| 563 | return nil, err |
| 564 | } |
| 565 | if p.defaultVars != nil { |
| 566 | if err := frame.SetDefaultVars(p.defaultVars); err != nil { |
| 567 | frame.Close() |
| 568 | return nil, err |
| 569 | } |
| 570 | } |
| 571 | return frame, nil |
| 572 | } |
| 573 | |
| 574 | // newAsyncFrame creates an ExecutionFrame configured for asynchronous evaluation under the |
| 575 | // given context, wiring the observer and concurrency limit from the program options. |
no test coverage detected