Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

bad shifting in debugger mode in a new Function() #306

Open
linqFR opened this issue Mar 6, 2020 · 0 comments
Open

bad shifting in debugger mode in a new Function() #306

linqFR opened this issue Mar 6, 2020 · 0 comments

Comments

@linqFR
Copy link

linqFR commented Mar 6, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant