Skip to content

Commit

Permalink
Selectively translate any to goja.Object/Value
Browse files Browse the repository at this point in the history
  • Loading branch information
joanlopez committed Jun 11, 2024
1 parent c0e1c33 commit 8940d21
Show file tree
Hide file tree
Showing 7 changed files with 698 additions and 94 deletions.
7 changes: 6 additions & 1 deletion eventbridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ func (c *EventBridgeClient) {{ .Name }}({{ .FunctionCall }}) sobek.Value {
panic(err)
}
return c.vu.Runtime().ToValue(out)
val, err := toSobekObject(c.vu.Runtime(), out)
if err != nil {
panic(err)
}
return val
}
{{ end }}
`
Expand Down
Loading

0 comments on commit 8940d21

Please sign in to comment.