Closed Bug 683733 Opened 14 years ago Closed 13 years ago

Add a sourceMap attribute to nsIScriptError

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: fitzgen, Unassigned)

Details

Developer tools (such as the webconsole) need the source mapping url so that they can display the correct source and line number for generated scripts (think minified js, or compiled CoffeeScript). This information is stored directly on JSScript as the `sourceMap` attribute. However, by the time the webconsole receives an instance of nsIScriptError, the associated JSScript from which the error was generated and which holds the source map url is long since gone and gc'd. To ensure that this badly needed information finds its way to the webconsole and other developer tools, I propose that we add a new attribute to nsIScriptError, called `sourceMap`, which contains the source map URL from the JSScript from which the nsIScriptError came from. It should be optional, and default to null, because not all JSScripts have a `sourceMap` associated with them.
No longer blocks: 679189
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.