We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v18.16.0
Microsoft Windows NT 10.0.19044.0 x64
Debugger
Create a file named index.js containing the following script:
index.js
let i = 5; while (--i > 0) { const foo = "bar" + i; }
Inspect it using node inspect index.js
node inspect index.js
watch foo: watch('foo'). Optionally, watch('i') too.
foo
watch('foo')
watch('i')
Go to l3 for the first time, assert that foo = undefined)
foo = undefined
Continue until you reach l3 again: the watched value of foo is then bar4 (and i=3): the debugger show the foo declared in the previous iteration
bar4
i=3
The reproducing steps are systematic, I reproduced similar behavior in longer scripts too
I'd expect the watch value to stay undefined or in error until the declaration statement
No response
The text was updated successfully, but these errors were encountered:
Safari can correctly watch the variable. This looks like a bug in V8 engine.
Sorry, something went wrong.
No branches or pull requests
Version
v18.16.0
Platform
Microsoft Windows NT 10.0.19044.0 x64
Subsystem
Debugger
What steps will reproduce the bug?
Create a file named
index.js
containing the following script:Inspect it using
node inspect index.js
watch
foo
:watch('foo')
. Optionally,watch('i')
too.Go to l3 for the first time, assert that
foo = undefined
)Continue until you reach l3 again: the watched value of foo is then
bar4
(andi=3
): the debugger show thefoo
declared in the previous iterationHow often does it reproduce? Is there a required condition?
The reproducing steps are systematic, I reproduced similar behavior in longer scripts too
What is the expected behavior? Why is that the expected behavior?
I'd expect the watch value to stay undefined or in error until the declaration statement
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: