Open
Bug 1642641
Opened 4 years ago
Updated 2 years ago
Variable is undefined when using source maps
Categories
(DevTools :: Debugger, defect, P3)
DevTools
Debugger
Tracking
(Not tracked)
NEW
People
(Reporter: jlast, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
What were you doing?
it looks like test
in the original code maps to test
instead of _test
.
var getDifficultyText2 = function getDifficultyText2(difficulty) {
switch (difficulty) {
case 1:
{
var test = "case 1";
return "Easy peasy, lemon squeezy!";
}
case 2:
{
var _test = "case 2";
var test2 = "case 22";
debugger;
return "Relativly simple!";
}
case 3:
return "Getting a little tricky!";
case 4:
return "Knife skills needed!";
case 5:
return "Master Chef!";
default:
return "Off the scales!!";
}
};
Reporter | ||
Comment 1•4 years ago
|
||
Reporter | ||
Updated•4 years ago
|
Priority: -- → P2
Comment 2•4 years ago
|
||
The severity field is not set for this bug.
:jlast, could you have a look please?
For more information, please visit auto_nag documentation.
Flags: needinfo?(jlaster)
Reporter | ||
Updated•4 years ago
|
Severity: -- → S2
Flags: needinfo?(jlaster)
Comment 3•4 years ago
|
||
I can still reproduce a problem here. There are no detailed STRs, but I am seeing:
- The inline preview is wrong
- The Watch expression is showing value for
_test
, which doesn't exist in the original code.
Should be fixed, but not S2
Updated•4 years ago
|
Severity: S2 → S3
Priority: P2 → P3
Comment 4•3 years ago
|
||
STRs:
- Load https://mm4j1.csb.app/
- Open DevTools and select the Debugger panel
- Reload the page to hit
debugger;
keyword - Hover over the
test
variable (in the current frame), the tooltip saysundefined
=> BUG
Note that the Watch Expression panel is also saying undefined
(so, something changed since the last comment).
Honza
Updated•3 years ago
|
Summary: `test` variable maps to the wrong expression → Variable is undefined when using source maps
Updated•3 years ago
|
Has STR: --- → yes
Updated•3 years ago
|
Blocks: debugger-tooltips
Updated•2 years ago
|
No longer blocks: dbg-sourcemap
You need to log in
before you can comment on or make changes to this bug.
Description
•