diff -r 000000000000 -r 6474c204b198 js/src/doc/Debugger/Debugger.Source.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/doc/Debugger/Debugger.Source.md Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,212 @@ +# Debugger.Source + +A `Debugger.Source` instance represents a piece of JavaScript source +code: its properties provide the source code itself as a string, and +describe where it came from. Each [`Debugger.Script`][script] instance refers to +the `Debugger.Source` instance holding the source code from which it was +produced. + +If a single piece of source code contains both top-level code and +function definitions, perhaps with nested functions, then the +[`Debugger.Script`][script] instances for those all refer to the same +`Debugger.Source` instance. Each script indicates the substring of the +overall source to which it corresponds. + +A `Debugger.Source` instance may represent only a portion of a larger +source document. For example, an HTML document can contain JavaScript in +multiple `