Files
bruno/packages/bruno-js
Chirag Chandrashekhar 7ed474c8ba fix: add Error constructors to NodeVM context for jsonwebtoken tests (#6209)
When jsonwebtoken throws errors inside the NodeVM context, those errors
were instances of the VM's isolated Error class, which caused
instanceOf(Error) checks in tests to fail.

By adding Error constructors (Error, TypeError, ReferenceError,
SyntaxError, RangeError) from the global scope to the scriptContext,
errors thrown by jsonwebtoken and other modules now use the same Error
class that tests check against, ensuring instanceOf checks pass correctly.

This fixes jsonwebtoken test failures when using the NodeVM runtime.
2025-11-26 17:57:11 +05:30
..
2024-08-21 12:52:49 +05:30
2023-02-08 03:45:27 +05:30

bruno-js

Provides the script, test, vars and assert runtimes.

Publish to Npm Registry

npm publish --access=public