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

implement @sourceURL and #sourceURL directives

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b02
    • CPU:
      generic
    • OS:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: