Skip to content

Commit

Permalink
Un-break links to now-gone SpiderMonkey docs (#12748)
Browse files Browse the repository at this point in the history
Fixes #12743
  • Loading branch information
sideshowbarker committed Feb 5, 2022
1 parent 909c7ec commit 56bc2d2
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ While MDN Web Docs contains a large quantity of Mozilla product documentation, t
- [The Mozilla platform](/en-US/docs/Mozilla)

- [Gecko](/en-US/docs/Mozilla/Gecko)
- [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey)
- [SpiderMonkey](https://firefox-source-docs.mozilla.org/js/)
- etc.

### What else?
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/mozilla/firefox/releases/44/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Highlights:
- The [`let`](/en-US/docs/Web/JavaScript/Reference/Statements/let) and [`const`](/en-US/docs/Web/JavaScript/Reference/Statements/const) bindings in the global level have been made compliant with ES2015 semantics. See {{bug(589199)}} and the blog post ["Breaking changes in let and const in Firefox Nightly 44"](https://blog.mozilla.org/addons/2015/10/14/breaking-changes-let-const-firefox-nightly-44/). In addition, `let` is now available to default Web JavaScript (strict and non-strict) and does not require a version opt-in anymore ({{bug(932517)}}).
- If [typed arrays'](/en-US/docs/Web/JavaScript/Typed_arrays) (like {{jsxref("Int8Array", "Int8Array")}}) and {{jsxref("ArrayBuffer", "ArrayBuffer")}}) constructors are called as a function without the {{jsxref("Operators/new", "new")}} operator, a {{jsxref("TypeError")}} is now thrown as per the ES2015 specification ({{bug(980945)}}, {{bug(1214936)}}).
- The {{jsxref("RegExp")}} sticky flag now follows the ES2015 standard for [anchored sticky regular expressions](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky#anchored_sticky_flag) ({{bug(773687)}}).
- The [JavaScript shell](/en-US/docs/Mozilla/Projects/SpiderMonkey/Introduction_to_the_JavaScript_shell) (SpiderMonkey's REPL) now defaults to the default, Web-compatible JS version (and not JS1.7+ anymore) ({{bug(1192329)}}).
- The JavaScript shell (SpiderMonkey's REPL) now defaults to the default, Web-compatible JS version (and not JS1.7+ anymore) ({{bug(1192329)}}).

#### Removals

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/tools/debugger-api/debugger.memory/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3 id="Allocation_Site_Tracking">Allocation Site Tracking</h3>
</li>
</ul>

<p>Given a <a href="Debugger.Object"><code>Debugger.Object</code></a> instance<em>dobj</em> referring to some object, <code><em>dobj</em>.<a href="Debugger.Object#allocationsite" title="Debugger.Object: allocationSite">allocationSite</a></code> returns a <a href="/en-US/docs/Mozilla/Projects/SpiderMonkey/SavedFrame">saved call stack</a> indicating where<em>dobj</em>’s referent was allocated.</p>
<p>Given a <a href="Debugger.Object"><code>Debugger.Object</code></a> instance<em>dobj</em> referring to some object, <code><em>dobj</em>.<a href="Debugger.Object#allocationsite" title="Debugger.Object: allocationSite">allocationSite</a></code> returns a <a href="https://firefox-source-docs.mozilla.org/js/SavedFrame/">saved call stack</a> indicating where<em>dobj</em>’s referent was allocated.</p>

<h3 id="Allocation_Logging">Allocation Logging</h3>

Expand Down
6 changes: 3 additions & 3 deletions files/en-us/tools/debugger-api/debugger.object/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ <h2 id="Accessor_Properties_of_the_Debugger.Object_prototype">Accessor Propertie
<p>If the referent is not a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>, or the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a> has not been rejected, throw a <code>TypeError</code>.</p>
</dd>
<dt><code>promiseAllocationSite</code></dt>
<dd>If the referent is a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>, this is the <a href="/en-US/docs/Mozilla/Projects/SpiderMonkey/SavedFrame">JavaScript execution stack</a> captured at the time of the promise’s allocation. This can return null if the promise was not created from script. If the referent is not a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>, throw a <code>TypeError</code> exception.</dd>
<dd>If the referent is a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>, this is the <a href="https://firefox-source-docs.mozilla.org/js/SavedFrame/">JavaScript execution stack</a> captured at the time of the promise’s allocation. This can return null if the promise was not created from script. If the referent is not a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>, throw a <code>TypeError</code> exception.</dd>
<dt><code>promiseResolutionSite</code></dt>
<dd>If the referent is a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>, this is the <a href="/en-US/docs/Mozilla/Projects/SpiderMonkey/SavedFrame">JavaScript execution stack</a> captured at the time of the promise’s resolution. This can return null if the promise was not resolved by calling its <code>resolve</code> or <code>reject</code> resolving functions from script. If the referent is not a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>, throw a <code>TypeError</code> exception.</dd>
<dd>If the referent is a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>, this is the <a href="https://firefox-source-docs.mozilla.org/js/SavedFrame/">JavaScript execution stack</a> captured at the time of the promise’s resolution. This can return null if the promise was not resolved by calling its <code>resolve</code> or <code>reject</code> resolving functions from script. If the referent is not a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>, throw a <code>TypeError</code> exception.</dd>
<dt><code>promiseID</code></dt>
<dd>If the referent is a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>, this is a process-unique identifier for the <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>. With e10s, the same id can potentially be assigned to multiple <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a> instances, if those instances were created in different processes. If the referent is not a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a>, throw a <code>TypeError</code> exception.</dd>
<dt><code>promiseDependentPromises</code></dt>
Expand All @@ -166,7 +166,7 @@ <h2 id="Accessor_Properties_of_the_Debugger.Object_prototype">Accessor Propertie
<dt><code>global</code></dt>
<dd>A <code>Debugger.Object</code> instance referring to the global object in whose scope the referent was allocated. This does not unwrap cross-compartment wrappers: if the referent is a wrapper, the result refers to the wrapper’s global, not the wrapped object’s global. The result refers to the global directly, not via a wrapper.</dd>
<dt><code id="allocationsite">allocationSite</code></dt>
<dd>If <a href="Debugger.Memory#trackingallocationsites" title="Debugger.Memory: trackingAllocationSites">object allocation site tracking</a> was enabled when this <code>Debugger.Object</code>’s referent was allocated, return the <a href="/en-US/docs/Mozilla/Projects/SpiderMonkey/SavedFrame">JavaScript execution stack</a> captured at the time of the allocation. Otherwise, return <code>null</code>.</dd>
<dd>If <a href="Debugger.Memory#trackingallocationsites" title="Debugger.Memory: trackingAllocationSites">object allocation site tracking</a> was enabled when this <code>Debugger.Object</code>’s referent was allocated, return the <a href="https://firefox-source-docs.mozilla.org/js/SavedFrame/">JavaScript execution stack</a> captured at the time of the allocation. Otherwise, return <code>null</code>.</dd>
</dl>

<h2 id="Function_Properties_of_the_Debugger.Object_prototype">Function Properties of the Debugger.Object prototype</h2>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/tools/memory/tree_map_view/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<li><strong>objects</strong>: JavaScript and DOM objects, such as <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></code>, <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></code>, or <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a></code>, and DOM types like <code><a href="/en-US/docs/Web/API/Window">Window</a></code> and <code><a href="/en-US/docs/Web/API/HTMLDivElement">HTMLDivElement</a></code>.</li>
<li><strong>scripts</strong>: JavaScript sources loaded by the page.</li>
<li><strong>strings</strong></li>
<li><strong>other</strong>: this includes internal <a href="/en-US/docs/Mozilla/Projects/SpiderMonkey">SpiderMonkey</a> objects.</li>
<li><strong>other</strong>: this includes internal <a href="https://firefox-source-docs.mozilla.org/js/">SpiderMonkey</a> objects.</li>
</ul>

<p>Each category is represented with a rectangle, and the size of the rectangle corresponds to the proportion of the heap occupied by items in that category. This means you can quickly get an idea of roughly what sorts of things allocated by your site are using the most memory.</p>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/tools/performance/allocations/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h2 id="Allocations_and_garbage_collection">Allocations and garbage collection</

<p>With a garbage-collected language, like JavaScript, the runtime periodically needs to walk the heap looking for objects that are no longer <a href="/en-US/docs/Tools/Memory/Dominators#reachability">reachable</a>, and then freeing the memory they occupy. While GC events like this are executing, the JavaScript engine must be paused, so your program is suspended and will be completely unresponsive.</p>

<p>To reduce the impact on responsiveness, <a href="/en-US/docs/Mozilla/Projects/SpiderMonkey">SpiderMonkey</a> (the JavaScript engine in Firefox) can perform GC in small increments, letting the program run in between. Sometimes, though, it needs to perform a full non-incremental collection, and the program has to wait for it to finish.</p>
<p>To reduce the impact on responsiveness, <a href="https://firefox-source-docs.mozilla.org/js/">SpiderMonkey</a> (the JavaScript engine in Firefox) can perform GC in small increments, letting the program run in between. Sometimes, though, it needs to perform a full non-incremental collection, and the program has to wait for it to finish.</p>

<p>GC events are shown as red markers in the <a href="/en-US/docs/Tools/Performance/Waterfall">Waterfall</a> view, and are a big red flag for responsiveness,  sometimes running for hundreds of milliseconds:</p>

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/tools/performance/waterfall/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ <h3 id="Expensive_paints">Expensive paints</h3>

<h3 id="Garbage_collection">Garbage collection</h3>

<p>Red markers in the Waterfall represent garbage collection (GC) events, in which <a href="/en-US/docs/Mozilla/Projects/SpiderMonkey">SpiderMonkey</a> (the JavaScript engine in Firefox) walks the heap looking for memory that's no longer reachable and subsequently releasing it. GC is relevant to performance because while it's running the JavaScript engine must be paused, so your program is suspended and will be completely unresponsive.</p>
<p>Red markers in the Waterfall represent garbage collection (GC) events, in which <a href="https://firefox-source-docs.mozilla.org/js/">SpiderMonkey</a> (the JavaScript engine in Firefox) walks the heap looking for memory that's no longer reachable and subsequently releasing it. GC is relevant to performance because while it's running the JavaScript engine must be paused, so your program is suspended and will be completely unresponsive.</p>

<p>To help reduce the length of pauses, SpiderMonkey implements <em>incremental GC</em>: this means that it can perform garbage collection in fairly small increments, letting the program run in between. Sometimes, though, it needs to perform a full non-incremental collection, and the program has to wait for it to finish.</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ readable form in English.

{{jsxref("Date")}} instances refer to a specific point in time. Calling
{{jsxref("Date.prototype.toString()", "toString()")}} will return the date formatted in
a human readable form in English. In [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey), this consists of
the date portion (day, month, and year) followed by the time portion (hours, minutes,
seconds, and time zone). Sometimes it is desirable to obtain a string of the time
a human readable form in English. Sometimes it is desirable to obtain a string of the time
portion; such a thing can be accomplished with the `toTimeString()` method.

The `toDateString()` method is especially useful because compliant engines
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ English.

{{jsxref("Date")}} instances refer to a specific point in time. Calling
{{jsxref("Date.prototype.toString()", "toString()")}} will return the date formatted in
a human readable form in English. In [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey), this consists of
the date portion (day, month, and year) followed by the time portion (hours, minutes,
seconds, and time zone). Sometimes it is desirable to obtain a string of the time
a human readable form in English. Sometimes it is desirable to obtain a string of the time
portion; such a thing can be accomplished with the `toTimeString()` method.

The `toTimeString()` method is especially useful because compliant engines
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The **`message`** property is a human-readable description of the error.

## Description

This property contains a brief description of the error if one is available or has been set. [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey) makes extensive use of the `message` property for exceptions. The `message` property combined with the {{jsxref("Error.prototype.name", "name")}} property is used by the {{jsxref("Error.prototype.toString()")}} method to create a string representation of the Error.
This property contains a brief description of the error if one is available or has been set. The `message` property combined with the {{jsxref("Error.prototype.name", "name")}} property is used by the {{jsxref("Error.prototype.toString()")}} method to create a string representation of the Error.

By default, the `message` property is an empty string, but this behavior can be overridden for an instance by specifying a message as the first argument to the {{jsxref("Error/Error", "Error")}} constructor.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The **`EvalError`** object indicates an error regarding the global {{jsxref("Glo
## Instance properties

- {{jsxref("Error.prototype.message", "EvalError.prototype.message")}}
- : Error message. Although ECMA-262 specifies that {{jsxref("EvalError")}} should provide its own `message` property, in [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey), it inherits {{jsxref("Error.prototype.message")}}.
- : Error message.
- {{jsxref("Error.prototype.name", "EvalError.prototype.name")}}
- : Error name. Inherited from {{jsxref("Error")}}.
- {{jsxref("Error.prototype.fileName", "EvalError.prototype.fileName")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This can be encountered when:
## Instance properties

- {{jsxref("Error.prototype.message", "RangeError.prototype.message")}}
- : Error message. Although ECMA-262 specifies that {{jsxref("RangeError")}} should provide its own `message` property, in [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey), it inherits {{jsxref("Error.prototype.message")}}.
- : Error message.
- {{jsxref("Error.prototype.name", "RangeError.prototype.name")}}
- : Error name. Inherited from {{jsxref("Error")}}.
- {{jsxref("Error.prototype.fileName", "RangeError.prototype.fileName")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The **`ReferenceError`** object represents an error when a variable that doesn't
## Instance properties

- {{jsxref("Error.prototype.message", "ReferenceError.prototype.message")}}
- : Error message. Although ECMA-262 specifies that {{jsxref("ReferenceError")}} should provide its own `message` property, in [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey), it inherits {{jsxref("Error.prototype.message")}}.
- : Error message.
- {{jsxref("Error.prototype.name", "ReferenceError.prototype.name")}}
- : Error name. Inherited from {{jsxref("Error")}}.
- {{jsxref("Error.prototype.fileName", "ReferenceError.prototype.fileName")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ The **`SyntaxError`** object represents an error when trying to interpret syntac
## Instance properties

- {{jsxref("Error.prototype.message", "SyntaxError.prototype.message")}}
- : Error message. Although ECMA-262 specifies that {{jsxref("SyntaxError")}} should provide its own `message` property, in [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey), it inherits {{jsxref("Error.prototype.message")}}.
- {{jsxref("Error.prototype.name", "SyntaxError.prototype.name")}}
- : Error name. Inherited from {{jsxref("Error")}}.
- : Error message. Inherited from {{jsxref("Error")}}.
- {{jsxref("Error.prototype.fileName", "SyntaxError.prototype.fileName")}}
- : Path to file that raised this error. Inherited from {{jsxref("Error")}}.
- {{jsxref("Error.prototype.lineNumber", "SyntaxError.prototype.lineNumber")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ A `TypeError` may be thrown when:
## Instance properties

- {{jsxref("Error.prototype.message", "TypeError.prototype.message")}}
- : Error message. Although ECMA-262 specifies that {{jsxref("TypeError")}} should provide its own `message` property, in [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey), it inherits {{jsxref("Error.prototype.message")}}.
- : Error message.
- {{jsxref("Error.prototype.name", "TypeError.prototype.name")}}
- : Error name. Inherited from {{jsxref("Error")}}.
- {{jsxref("Error.prototype.fileName", "TypeError.prototype.fileName")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The **`URIError`** object represents an error when a global URI handling functio
## Instance properties

- {{jsxref("Error.prototype.message", "URIError.prototype.message")}}
- : Error message. Although ECMA-262 specifies that {{jsxref("URIError")}} should provide its own `message` property, in [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey), it inherits {{jsxref("Error.prototype.message")}}.
- : Error message.
- {{jsxref("Error.prototype.name", "URIError.prototype.name")}}
- : Error name. Inherited from {{jsxref("Error")}}.
- {{jsxref("Error.prototype.fileName", "URIError.prototype.fileName")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ object[foo] = 'value'
console.log(object[bar])
```

In the [SpiderMonkey](/en-US/docs/Mozilla/Projects/SpiderMonkey) JavaScript
engine, this string would be "`[object Object]`".

### Method binding

A method is not bound to the object that it is a method of. Specifically,
Expand Down

0 comments on commit 56bc2d2

Please sign in to comment.