fix missing error handling in script.js

This commit is contained in:
Joel Wetzell
2025-12-01 22:12:10 -06:00
parent b372b53422
commit 45965a4eac

View File

@@ -31,6 +31,10 @@ func (sj *ScriptJS) Process(ctx context.Context, payload any) (any, error) {
_, err = vm.Eval(sj.Program, quickjs.EvalGlobal)
if err != nil {
return nil, err
}
output, err := vm.GetProperty(vm.GlobalObject(), payloadAtom)
if err != nil {