Details
-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
None
-
b02
-
generic
-
generic
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045072 | 8u25 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
JDK-8037989 | 8u20 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b09 |
JDK-8052472 | emb-8u26 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b18 |
Description
//@sourceURL (and the newer //#sourceURL) directive comment allows a name to associated with the script being evaluated. This helps debugging eval, Function code that is unnamed. Nashorn has 'load' from object with 'name' and 'script' properties. But @sourceURL is supported by other tools/implementations like firebug, v8.
See also:
http://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/
https://bugzilla.mozilla.org/show_bug.cgi?id=583083
https://developers.google.com/chrome-developer-tools/docs/javascript-debugging
http://updates.html5rocks.com/2013/06/sourceMappingURL-and-sourceURL-syntax-changed
See also:
http://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/
https://bugzilla.mozilla.org/show_bug.cgi?id=583083
https://developers.google.com/chrome-developer-tools/docs/javascript-debugging
http://updates.html5rocks.com/2013/06/sourceMappingURL-and-sourceURL-syntax-changed
Attachments
Issue Links
- backported by
-
JDK-8037989 implement @sourceURL and #sourceURL directives
-
- Resolved
-
-
JDK-8045072 implement @sourceURL and #sourceURL directives
-
- Resolved
-
-
JDK-8052472 implement @sourceURL and #sourceURL directives
-
- Resolved
-
- relates to
-
JDK-8029967 Final steps to have Error compliant with V8 Error API
-
- Resolved
-