kantan-lang icon indicating copy to clipboard operation
kantan-lang copied to clipboard

Wrong scope/line info for let followed by assign

Open Funkschy opened this issue 5 years ago • 0 comments

if we do something like this:

let x = 5;
x = 3;

The debugger will jump directly to the second line, without initializing x. If we print the value of x, we get junk. Only after stepping one more time, x is initialized to 3

Funkschy avatar Jun 16 '20 20:06 Funkschy