Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8032068

implement @sourceURL and #sourceURL directives

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 9
    • None
    • core-libs
    • None
    • b02
    • generic
    • generic

    Backports

      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

        Attachments

          Issue Links

            Activity

              People

                sundar Sundararajan Athijegannathan
                sundar Sundararajan Athijegannathan
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: