Skip to content

Visor SandboxJS silently aborts execution when await is inside try-catch block #582

Description

@probelabs

Requested by: @U3P2L4XNE

Slack thread: https://slack.com/archives/C0ALHS9H3S5/p1782282700481099

  • Branch/Environment:

    • Environment: Visor SandboxJS
  • Describe the bug:
    The Visor SandboxJS environment silently aborts execution when an await expression is placed inside a try-catch block. The script stops executing and returns undefined without throwing any visible errors.

  • Reproduction steps:

    1. Create a Visor script with a try-catch block.
    2. Inside the try block, add an await expression (e.g., await bash(...)).
    3. Run the script.
  • Actual behavior:
    The script execution silently aborts at the await expression and returns undefined.

  • Expected behavior:
    The await expression should execute normally inside the try-catch block, or if there's an error, it should be caught by the catch block.

  • Business Impact:

    • Blocking implementation? Yes, it causes scripts like the CVE processor to fail silently and report incorrect results (e.g., Processed: 0).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions