Skip to content

Commit

Permalink
Editorial: Various editorial fixes (closes #290)
Browse files Browse the repository at this point in the history
  • Loading branch information
anba authored and bterlson committed Jan 15, 2016
1 parent 518c581 commit eac27af
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -16633,7 +16633,7 @@ <h1>Runtime Semantics: CaseBlockEvaluation</h1>
<emu-grammar>CaseBlock : `{` CaseClauses? DefaultClause CaseClauses? `}`</emu-grammar>
<emu-alg>
1. Let _V_ be *undefined*.
1. Let _A_ be the list of |CaseClause| items in the first |CaseClauses|, in source text order. If the first |CaseClauses| is not present _A_ is &laquo; &raquo;.
1. Let _A_ be the List of |CaseClause| items in the first |CaseClauses|, in source text order. If the first |CaseClauses| is not present _A_ is &laquo; &raquo;.
1. Let _found_ be *false*.
1. Repeat for each |CaseClause| _C_ in _A_
1. If _found_ is *false*, then
Expand Down Expand Up @@ -18221,7 +18221,7 @@ <h1>Runtime Semantics: DefineMethod</h1>
1. If the function code for this |MethodDefinition| is strict mode code, let _strict_ be *true*. Otherwise let _strict_ be *false*.
1. Let _scope_ be the running execution context's LexicalEnvironment.
1. If _functionPrototype_ was passed as a parameter, let _kind_ be ~Normal~; otherwise let _kind_ be ~Method~.
1. Let _closure_ be FunctionCreate(_kind_, |StrictFormalParameters|, |FunctionBody|, _scope_, _strict_). If _functionPrototype_ was passed as a parameter then pass its value as the _functionPrototype_ optional argument of FunctionCreate.
1. Let _closure_ be FunctionCreate(_kind_, |StrictFormalParameters|, |FunctionBody|, _scope_, _strict_). If _functionPrototype_ was passed as a parameter then pass its value as the _prototype_ optional argument of FunctionCreate.
1. Perform MakeMethod(_closure_, _object_).
1. Return the Record{[[key]]: _propKey_, [[closure]]: _closure_}.
</emu-alg>
Expand Down Expand Up @@ -29369,7 +29369,7 @@ <h1>Array.from ( _items_ [ , _mapfn_ [ , _thisArg_ ] ] )</h1>
1. If _defineStatus_ is an abrupt completion, return ? IteratorClose(_iterator_, _defineStatus_).
1. Increase _k_ by 1.
1. Note: _items_ is not an Iterable so assume it is an array-like object.
1. Let _arrayLike_ be ? ToObject(_items_).
1. Let _arrayLike_ be ! ToObject(_items_).
1. Let _len_ be ? ToLength(? Get(_arrayLike_, `"length"`)).
1. If IsConstructor(_C_) is *true*, then
1. Let _A_ be ? Construct(_C_, &laquo; _len_ &raquo;).
Expand Down Expand Up @@ -30978,7 +30978,7 @@ <h1>Runtime Semantics: IterableToArrayLike( _items_ )</h1>
1. Append _nextValue_ to the end of the List _values_.
1. Return CreateArrayFromList(_values_).
1. Note: _items_ is not an Iterable so assume it is already an array-like object.
1. Return ? ToObject(_items_).
1. Return ! ToObject(_items_).
</emu-alg>
</emu-clause>
</emu-clause>
Expand Down Expand Up @@ -31571,8 +31571,8 @@ <h1>_TypedArray_ ( _length_ )</h1>
1. Assert: Type(_length_) is not Object.
1. If NewTarget is *undefined*, throw a *TypeError* exception.
1. If _length_ is *undefined*, throw a *TypeError* exception.
1. Let _numberLength_ be ToNumber(_length_).
1. Let _elementLength_ be ? ToLength(_numberLength_).
1. Let _numberLength_ be ? ToNumber(_length_).
1. Let _elementLength_ be ToLength(_numberLength_).
1. If SameValueZero(_numberLength_, _elementLength_) is *false*, throw a *RangeError* exception.
1. Let _constructorName_ be the String value of the Constructor Name value specified in <emu-xref href="#table-49"></emu-xref> for this <var>TypedArray</var> constructor.
1. Return ? AllocateTypedArray(_constructorName_, NewTarget, <code>%<var>TypedArray</var>Prototype%</code>, _elementLength_).
Expand Down Expand Up @@ -31693,7 +31693,7 @@ <h1>_TypedArray_ ( _buffer_ [ , _byteOffset_ [ , _length_ ] ] )</h1>
1. Assert: Type(_buffer_) is Object and _buffer_ has an [[ArrayBufferData]] internal slot.
1. If NewTarget is *undefined*, throw a *TypeError* exception.
1. Let _constructorName_ be the String value of the Constructor Name value specified in <emu-xref href="#table-49"></emu-xref> for this <var>TypedArray</var> constructor.
1. Let _O_ be ? AllocateTypedArray(_constructorName_, NewTarget, </code>%<var>TypedArray</var>Prototype%</code>).
1. Let _O_ be ? AllocateTypedArray(_constructorName_, NewTarget, <code>%<var>TypedArray</var>Prototype%</code>).
1. Let _constructorName_ be the String value of _O_'s [[TypedArrayName]] internal slot.
1. Let _elementSize_ be the Number value of the Element Size value in <emu-xref href="#table-49"></emu-xref> for _constructorName_.
1. Let _offset_ be ? ToInteger(_byteOffset_).
Expand Down Expand Up @@ -35886,7 +35886,7 @@ <h2>Syntax</h2>
[+U] DecimalEscape
[+U] CharacterEscape[U]
[+U] CharacterClassEscape
[~U] DecimalEscape but only if the integer value of DecimalEscape is &lt;= _NCapturingParens_
[~U] DecimalEscape but only if the integer value of DecimalEscape is &lt;= _NcapturingParens_
[~U] CharacterClassEscape
[~U] CharacterEscape

Expand Down Expand Up @@ -35936,6 +35936,7 @@ <h2>Syntax</h2>
[+U] DecimalEscape
[+U] CharacterEscape[U]
[+U] CharacterClassEscape
[+U] `-`
[~U] DecimalEscape
`b`
[~U] CharacterClassEscape
Expand Down

0 comments on commit eac27af

Please sign in to comment.