Closed
Bug 611374
Opened 14 years ago
Closed 9 years ago
Enhance "redeclaration of var" error messages to include the location of the original declaration
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
DUPLICATE
of bug 104442
People
(Reporter: crowderbt, Unassigned)
Details
Basically, an error like this would be greatly improved by the addition of further hinting: ===snip=== error: An exception occurred. Traceback (most recent call last): File "resource://jid0-wsgvcdpnsgacsdv18b9ssbjpwvo-jetpack-core-lib/plain-text-console.js", line 37, in const {Cc,Ci} = require("chrome"); TypeError: redeclaration of var Cc ===snip=== ala gcc, something like ===snip=== File "resource://foo/blah.js", line 15" is the location of the previous declaration ===snip===
Reporter | ||
Comment 1•14 years ago
|
||
This might depend on help from bug 422501, but see also bug 443726 for confusion and mayhem.
Assignee | ||
Updated•10 years ago
|
Assignee: general → nobody
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•