ndb icon indicating copy to clipboard operation
ndb copied to clipboard

bad shifting in debugger mode in a new Function()

Open linqFR opened this issue 4 years ago • 0 comments

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.

  1. 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') )
  2. 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

linqFR avatar Mar 06 '20 19:03 linqFR