aboutsummaryrefslogtreecommitdiff
path: root/JS.md
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2017-01-17 08:59:43 -0800
committerMircea Trofin <mtrofin@google.com>2017-01-17 08:59:43 -0800
commit45a0d459d1534d101a24aa614f3cc1dbee1e5482 (patch)
treed289b877b2e3ed9035e966100468a100e894e14e /JS.md
parentedae7995cf61a46279702893fe85bd9168b2b0a6 (diff)
downloadnanowasm-design-45a0d459d1534d101a24aa614f3cc1dbee1e5482.tar.gz
Revert "Clarify Table constructor behavior re. 'maximum'"
This reverts commit edae7995cf61a46279702893fe85bd9168b2b0a6.
Diffstat (limited to 'JS.md')
-rw-r--r--JS.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/JS.md b/JS.md
index c272d9f..243dfe9 100644
--- a/JS.md
+++ b/JS.md
@@ -633,9 +633,9 @@ is thrown.
Let `initial` be [`ToNonWrappingUint32`](#tononwrappinguint32)([`Get`](http://tc39.github.io/ecma262/#sec-get-o-p)(`tableDescriptor`, `"initial"`)).
If [`HasProperty`](http://tc39.github.io/ecma262/#sec-hasproperty)(`"maximum"`),
-then let `maximum` be [`ToNonWrappingUint32`](#tononwrappinguint32)([`Get`](http://tc39.github.io/ecma262/#sec-get-o-p)(`tableDescriptor`, `"maximum"`)). Otherwise, let `maximum` be None.
-
-If `maximum` is not None and is smaller than `initial`, then throw a [`RangeError`](https://tc39.github.io/ecma262/#sec-native-error-types-used-in-this-standard-rangeerror).
+then let `maximum` be [`ToNonWrappingUint32`](#tononwrappinguint32)([`Get`](http://tc39.github.io/ecma262/#sec-get-o-p)(`tableDescriptor`, `"maximum"`)).
+If `maximum` is smaller than `initial`, then throw a [`RangeError`](https://tc39.github.io/ecma262/#sec-native-error-types-used-in-this-standard-rangeerror).
+Otherwise, let `maximum` be None.
Let `table` be the result of calling
[`Table.create`](https://github.com/WebAssembly/spec/blob/master/interpreter/spec/table.ml#L68)