Bug 1119954 - document Debugger.Source.displayURL; r=jimb
authorTom Tromey <tom@tromey.com>
Wed, 31 May 2017 13:31:47 -0600
changeset 368158 78de1ee2021fc17a73efa0235711095cfff19323
parent 368157 00581e80885c4a8105fe2becf8fbb1baf2f81101
child 368159 021c89bf44eaa92d6f41d69186e501dde942e5be
push id32158
push usercbook@mozilla.com
push dateTue, 11 Jul 2017 10:48:59 +0000
treeherdermozilla-central@5e2692f8a367 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimb
bugs1119954
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1119954 - document Debugger.Source.displayURL; r=jimb MozReview-Commit-ID: 7vlg1DqpFc
js/src/doc/Debugger/Debugger.Source.md
--- a/js/src/doc/Debugger/Debugger.Source.md
+++ b/js/src/doc/Debugger/Debugger.Source.md
@@ -117,22 +117,27 @@ from its prototype:
     source, then this property's value is that URL. Otherwise, this is `null`.
 
     (On the web, the translator may provide the source map URL in a
     specially formatted comment in the JavaScript source code, or via a
     header in the HTTP reply that carried the generated JavaScript.)
 
     This property is writable, so you can change the source map URL by
     setting it. All Debugger.Source objects referencing the same
-    source will see the change. Setting an empty string has no affect
+    source will see the change. Setting an empty string has no effect
     and will not change existing value.
 
     **If the instance refers to WebAssembly code**, `null`. Attempts to write
     to this property throw a `TypeError`.
 
+`displayURL`
+:   If the script had a special `//# sourceURL` comment, as described in
+    the source maps specification, then this property's value holds
+    the string that was given.  Otherwise, this is `null`.
+
 `element`
 :   The [`Debugger.Object`][object] instance referring to the DOM element to which
     this source code belongs, if any, or `undefined` if it belongs to no DOM
     element. Source belongs to a DOM element in the following cases:
 
     * Source belongs to a `<script>` element if it is the element's text
       content (that is, it is written out as the body of the `<script>`
       element in the markup text), or is the source document referenced by its