Merge pull request #3 from jwetzell/fix/js-processor-err-handling

fix missing error handling in script.js
This commit is contained in:
Joel Wetzell
2025-12-01 22:13:25 -06:00
committed by GitHub

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 {