ndb
ndb copied to clipboard
bad shifting in debugger mode in a new Function()
Steps to reproduce
Tell us about your environment:
- ndb version:6.14.2
- Platform / OS version: Windows 10
- Node.js version:12.16.1 x64
What steps will reproduce the problem?
Please include code that reproduces the issue.
- create a new Function() with debugger inside (eg.
(new Function('arg','debugger;var ar=[];for(var i=0;i<10;i++){ar[i]=arg}return ar'))('test')
) - run the function and pretty print when stopping at debugger instruction
What is the expected result? the cursor is supposed to be at position of running code
What happens instead? Cursor is not at right position and the highlighted line / character is not corresponding of the running code