Skip to content

Conversation

@francisbouvier
Copy link
Member

  • return a JSValue instead of a JSResult, preserving the underlying value and avoiding automatic stringification (with allocation)
  • let the caller handle TryCatch if needed, including retreiving exception and stack if needed
  • refacto the TryCatch interface to hide v8 implementation from the public implementation
  • simplify the Env related methods (exec + execWait)
  • do not close shell on JS exec error

- return a JSValue instead of a JSResult, preserving the underlying
value and avoiding automatic stringification (with allocation)
- let the caller handle TryCatch if needed, including retreiving
exception and stack if needed
- refacto the TryCatch interface to hide v8 implementation from the
public implementation
- simplify the Env related methods (exec + execWait)
- do not close shell on JS exec error

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
@francisbouvier francisbouvier merged commit 3fcd9b8 into main Jul 8, 2024
@krichprollsch krichprollsch deleted the js_exec branch April 9, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants