Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
Remove unused abstract operations
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Mar 6, 2016
1 parent 5fe3a9e commit d00c92d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 48 deletions.
56 changes: 20 additions & 36 deletions index.html
Expand Up @@ -22,7 +22,7 @@
<div class="head">
<p><a class="logo" href="https://www.whatwg.org/"><img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-javascript.svg" width="100"></a></p>
<h1>JavaScript, <abbr title="also known as">a.k.a.</abbr> Web ECMAScript</h1>
<h2 class="no-num no-toc" id="living-standard-—-3-march-2016">Living Standard — 3 March 2016</h2>
<h2 class="no-num no-toc" id="living-standard-—-6-march-2016">Living Standard — 6 March 2016</h2>
<dl>
<dt>This Version:
<dd><a href="https://javascript.spec.whatwg.org/">https://javascript.spec.whatwg.org/</a>
Expand All @@ -39,7 +39,7 @@ <h2 class="no-num no-toc" id="living-standard-—-3-march-2016">Living Standard
<p class="copyright"><a href="https://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="https://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
To the extent possible under law, the editor has waived all copyright and
related or neighboring rights to this work. In addition, as of
3 March 2016, the editor has made this specification available
6 March 2016, the editor has made this specification available
under the
<a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
which is available at
Expand All @@ -54,22 +54,18 @@ <h2 class="no-num no-toc" id="table-of-contents">Table of Contents</h2>
<li><a href="#goals"><span class="secno">1 </span>Goals</a></li>
<li><a href="#conformance"><span class="secno">2 </span>Conformance</a></li>
<li><a href="#terminology"><span class="secno">3 </span>Terminology</a></li>
<li><a href="#abstract-operations"><span class="secno">4 </span>Abstract operations</a>
<li><a href="#annex-b"><span class="secno">4 </span>Annex B</a></li>
<li><a href="#date"><span class="secno">5 </span><code>Date</code></a>
<ol>
<li><a href="#iscallable"><span class="secno">4.1 </span><code>IsCallable(<var>value</var>)</code></a></li>
<li><a href="#tostring"><span class="secno">4.2 </span><code>ToString(<var>value</var>)</code></a></ol></li>
<li><a href="#annex-b"><span class="secno">5 </span>Annex B</a></li>
<li><a href="#date"><span class="secno">6 </span><code>Date</code></a>
<li><a href="#date.utc"><span class="secno">5.1 </span><code>Date.UTC(<var>year</var>, <var>month</var>, <var>date</var>, <var>hours</var>, <var>minutes</var>, <var>seconds</var>, <var>ms</var>)</code></a></ol></li>
<li><a href="#regexp"><span class="secno">6 </span><code>RegExp</code></a>
<ol>
<li><a href="#date.utc"><span class="secno">6.1 </span><code>Date.UTC(<var>year</var>, <var>month</var>, <var>date</var>, <var>hours</var>, <var>minutes</var>, <var>seconds</var>, <var>ms</var>)</code></a></ol></li>
<li><a href="#regexp"><span class="secno">7 </span><code>RegExp</code></a>
<li><a href="#octal-escapes-in-regular-expression-literals"><span class="secno">6.1 </span>Octal escapes in regular expression literals</a></li>
<li><a href="#regexp.$n"><span class="secno">6.2 </span><code>RegExp.<var>$1</var>-<var>$9</var></code></a></li>
<li><a href="#regexp.lastmatch"><span class="secno">6.3 </span><code>RegExp.lastMatch</code> / <code>RegExp["$&amp;"]</code></a></ol></li>
<li><a href="#function"><span class="secno">7 </span><code>Function</code></a>
<ol>
<li><a href="#octal-escapes-in-regular-expression-literals"><span class="secno">7.1 </span>Octal escapes in regular expression literals</a></li>
<li><a href="#regexp.$n"><span class="secno">7.2 </span><code>RegExp.<var>$1</var>-<var>$9</var></code></a></li>
<li><a href="#regexp.lastmatch"><span class="secno">7.3 </span><code>RegExp.lastMatch</code> / <code>RegExp["$&amp;"]</code></a></ol></li>
<li><a href="#function"><span class="secno">8 </span><code>Function</code></a>
<ol>
<li><a href="#function.prototype.tostring()"><span class="secno">8.1 </span><code>Function.prototype.toString()</code></a></ol></li>
<li><a href="#function.prototype.tostring()"><span class="secno">7.1 </span><code>Function.prototype.toString()</code></a></ol></li>
<li><a class="no-num" href="#references">References</a></li>
<li><a class="no-num" href="#acknowledgments">Acknowledgments</a></ol>
<!--end-toc-->
Expand Down Expand Up @@ -108,27 +104,15 @@ <h2 id="terminology"><span class="secno">3 </span>Terminology</h2>

<p>When this specification uses the term <dfn id="ecmascript-character">ECMAScript character</dfn>, it means a 16-bit unsigned value used to represent a single 16-bit unit of text. <a href="#refsECMASCRIPT">[ECMASCRIPT]</a>

<h2 id="abstract-operations"><span class="secno">4 </span>Abstract operations</h2>

<p>To clarify the semantics of certain constructs used throughout this document, it is useful to define a set of abstract operations. These abstract operations are not a part of the language, and must not be exposed to Web authors; they are only defined here to aid the specification of the semantics of the language.

<h3 id="iscallable"><span class="secno">4.1 </span><code>IsCallable(<var>value</var>)</code></h3>

<p>The abstract operation <code><dfn id="iscallable-0">IsCallable</dfn>(<var>value</var>)</code> determines if its argument is a callable function object. <a class="external" data-anolis-spec="ecmascript" href="https://tc39.github.io/ecma262/#sec-iscallable" title="IsCallable()">It is defined in the ECMAScript specification.</a>

<h3 id="tostring"><span class="secno">4.2 </span><code>ToString(<var>value</var>)</code></h3>

<p>The abstract operation <code><dfn id="tostring-0">ToString</dfn>(<var>value</var>)</code> converts its argument to a value of type <code>String</code>. <a class="external" data-anolis-spec="ecmascript" href="https://tc39.github.io/ecma262/#sec-tostring" title="ToString()">It is defined in the ECMAScript specification.</a>

<h2 id="annex-b"><span class="secno">5 </span>Annex B</h2>
<h2 id="annex-b"><span class="secno">4 </span>Annex B</h2>

<p>JavaScript implementations must fully implement <a class="external" data-anolis-spec="ecmascript" href="https://tc39.github.io/ecma262/#sec-B" title="Annex B">Annex B of the ECMAScript specification</a>.

<h2 id="date"><span class="secno">6 </span><code>Date</code></h2>
<h2 id="date"><span class="secno">5 </span><code>Date</code></h2>

<p class="status">Tests are available: <a href="https://mathias.html5.org/tests/javascript/date/">https://mathias.html5.org/tests/javascript/date/</a>.

<h3 id="date.utc"><span class="secno">6.1 </span><code>Date.UTC(<var>year</var>, <var>month</var>, <var>date</var>, <var>hours</var>, <var>minutes</var>, <var>seconds</var>, <var>ms</var>)</code></h3>
<h3 id="date.utc"><span class="secno">5.1 </span><code>Date.UTC(<var>year</var>, <var>month</var>, <var>date</var>, <var>hours</var>, <var>minutes</var>, <var>seconds</var>, <var>ms</var>)</code></h3>

<p>When called with fewer than two arguments, <a href="https://tc39.github.io/ecma262/#sec-date.utc"><code class="external" data-anolis-spec="ecmascript">Date.UTC</code></a> must return <code>NaN</code>.

Expand All @@ -137,31 +121,31 @@ <h3 id="date.utc"><span class="secno">6.1 </span><code>Date.UTC(<var>year</var>,
https://bugzilla.mozilla.org/show_bug.cgi?id=1050755
-->

<h2 id="regexp"><span class="secno">7 </span><code>RegExp</code></h2>
<h2 id="regexp"><span class="secno">6 </span><code>RegExp</code></h2>
<!-- http://mxr.mozilla.org/mozilla-central/source/js/src/yarr/YarrParser.h#304 -->

<h3 id="octal-escapes-in-regular-expression-literals"><span class="secno">7.1 </span>Octal escapes in regular expression literals</h3>
<h3 id="octal-escapes-in-regular-expression-literals"><span class="secno">6.1 </span>Octal escapes in regular expression literals</h3>

<p>The <a class="external" data-anolis-spec="ecmascript" href="https://tc39.github.io/ecma262/#sec-additional-syntax-string-literals" title="Octal escape syntax">octal escape sequence syntax for string literals as described in Annex B of the ECMAScript spec</a> must be supported, and must also apply to regular expression literals, even in strict mode code.

<pre class="example">/\123/.test('S'); // true</pre>

<h3 id="regexp.$n"><span class="secno">7.2 </span><code>RegExp.<var>$1</var>-<var>$9</var></code></h3>
<h3 id="regexp.$n"><span class="secno">6.2 </span><code>RegExp.<var>$1</var>-<var>$9</var></code></h3>

<p>After a regexp is executed the <code>RegExp</code> constructor object has properties <code>$1...$9</code> which are assigned the values of the first 9 match groups from the previous regexp. <!-- TODO: more detail -->

<h3 id="regexp.lastmatch"><span class="secno">7.3 </span><code>RegExp.lastMatch</code> / <code>RegExp["$&amp;"]</code></h3>
<h3 id="regexp.lastmatch"><span class="secno">6.3 </span><code>RegExp.lastMatch</code> / <code>RegExp["$&amp;"]</code></h3>

<!-- TODO:
https://developer.mozilla.org/en/JavaScript/Reference/Deprecated_and_obsolete_features#RegExp_properties
http://msdn.microsoft.com/en-us/library/bxf43z0b.aspx
-->

<h2 id="function"><span class="secno">8 </span><code>Function</code></h2>
<h2 id="function"><span class="secno">7 </span><code>Function</code></h2>

<p class="status">Tests are available: <a href="https://mathias.html5.org/tests/javascript/function/">https://mathias.html5.org/tests/javascript/function/</a>.

<h3 id="function.prototype.tostring()"><span class="secno">8.1 </span><code>Function.prototype.toString()</code></h3>
<h3 id="function.prototype.tostring()"><span class="secno">7.1 </span><code>Function.prototype.toString()</code></h3>

TODO
<!-- http://ecma-international.org/ecma-262/6.0/#sec-function.prototype.tostring leaves everything up to the implementation -->
Expand Down
12 changes: 0 additions & 12 deletions index.src.html
Expand Up @@ -86,18 +86,6 @@ <h2>Terminology</h2>

<p>When this specification uses the term <dfn>ECMAScript character</dfn>, it means a 16-bit unsigned value used to represent a single 16-bit unit of text. <span data-anolis-ref>ECMASCRIPT</span>

<h2>Abstract operations</h2>

<p>To clarify the semantics of certain constructs used throughout this document, it is useful to define a set of abstract operations. These abstract operations are not a part of the language, and must not be exposed to Web authors; they are only defined here to aid the specification of the semantics of the language.

<h3 id=iscallable><code>IsCallable(<var>value</var>)</code></h3>

<p>The abstract operation <code><dfn>IsCallable</dfn>(<var>value</var>)</code> determines if its argument is a callable function object. <span data-anolis-spec=ecmascript title=IsCallable()>It is defined in the ECMAScript specification.</span>

<h3 id=tostring><code>ToString(<var>value</var>)</code></h3>

<p>The abstract operation <code><dfn>ToString</dfn>(<var>value</var>)</code> converts its argument to a value of type <code>String</code>. <span data-anolis-spec=ecmascript title=ToString()>It is defined in the ECMAScript specification.</span>

<h2>Annex B</h2>

<p>JavaScript implementations must fully implement <span data-anolis-spec=ecmascript title="Annex B">Annex B of the ECMAScript specification</span>.
Expand Down

0 comments on commit d00c92d

Please sign in to comment.