debugger throws bogus error messages - cache problem?

RESOLVED INVALID

Status

()

Core
JavaScript Engine
RESOLVED INVALID
7 months ago
4 months ago

People

(Reporter: Jim Michaels, Unassigned)

Tracking

54 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 months ago
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170608105825

Steps to reproduce:

cannot put commercial code here. suggest you look at the debugger or js parser and examine what could really throw those error messages.
line 2804 is 
							var curdow=getdow(dtime);
line 2850 is 
					if (-1==arrIndexOf(sweek,keyword,true)) {

parser has lost its senses. DTime.js is 3500 lines of commercial code.


Actual results:

unreachable code after return statement[Learn More]  DTime.js:2804
SyntaxError: missing ; before statement[Learn More]  DTime.js:2850:7

both of these error messages have nothing to do with the code on those lines. cache problem again? error #1: no return statement is anwhere near the vicinity. bug#2: no ; is required anywhere on line 2850.

Updated

7 months ago
Component: Untriaged → Developer Tools: Debugger

Updated

4 months ago
Component: Developer Tools: Debugger → JavaScript Engine
Product: Firefox → Core
for 1st case, it means there's "return" *before* that line.
for 2nd case, it means there was not ";" *before* that line.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 4 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.