You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues and found nothing related to my issue.
This bug is:
making Bruno unusable for me
slowing me down but I'm able to continue working
annoying
Bruno version
2.0.1
Operating System
Windows 11, MacOS
Describe the bug
Bruno's eval() can't seem to evaluate existing variables. In Postman, this works:
let lHello = "world";
console.log(lHello);
eval('test={"hello":lHello}');
console.log(test);
In Bruno, it will come back with "lHello is not defined".
I simplified the code to show the issue. I was trying to convert a Postman script by dynamically changing req.body (pm.request.body.raw in Postman) but Bruno can't seem access variables from within eval().
.bru file to reproduce the bug
No response
Screenshots/Live demo link
Bruno:
Postman:
The text was updated successfully, but these errors were encountered:
Hi @rsuplido, i was able to reproduce this issue in developer mode but it works in safe mode, can you try switching to safe mode and confirm if it's working for you. There seem to be a problem with using variables inside eval() in dev mode. We'll look into it. Thanks!
I have checked the following:
This bug is:
Bruno version
2.0.1
Operating System
Windows 11, MacOS
Describe the bug
Bruno's eval() can't seem to evaluate existing variables. In Postman, this works:
In Bruno, it will come back with "lHello is not defined".
I simplified the code to show the issue. I was trying to convert a Postman script by dynamically changing req.body (pm.request.body.raw in Postman) but Bruno can't seem access variables from within eval().
.bru file to reproduce the bug
No response
Screenshots/Live demo link
Bruno:

Postman:

The text was updated successfully, but these errors were encountered: