@@ -35,27 +35,7 @@ func (s *Script) Call(ctx context.Context, name string, args []Value, opts CallO
3535 }
3636 rebinder := newCallFunctionRebinder (s , root , callClasses )
3737
38- exec := & Execution {
39- engine : s .engine ,
40- script : s ,
41- ctx : ctx ,
42- quota : s .engine .config .StepQuota ,
43- memoryQuota : s .engine .config .MemoryQuotaBytes ,
44- recursionCap : s .engine .config .RecursionLimit ,
45- callStack : make ([]callFrame , 0 , 8 ),
46- root : root ,
47- modules : make (map [string ]Value ),
48- moduleLoading : make (map [string ]bool ),
49- moduleLoadStack : make ([]string , 0 , 8 ),
50- moduleStack : make ([]moduleContext , 0 , 8 ),
51- capabilityContracts : make (map [* Builtin ]CapabilityMethodContract ),
52- capabilityContractScopes : make (map [* Builtin ]* capabilityContractScope ),
53- capabilityContractsByName : make (map [string ]CapabilityMethodContract ),
54- receiverStack : make ([]Value , 0 , 8 ),
55- envStack : make ([]* Env , 0 , 8 ),
56- strictEffects : s .engine .config .StrictEffects ,
57- allowRequire : opts .AllowRequire ,
58- }
38+ exec := newExecutionForCall (s , ctx , root , opts )
5939
6040 if err := bindCapabilitiesForCall (exec , root , rebinder , opts .Capabilities ); err != nil {
6141 return NewNil (), err
0 commit comments