aboutsummaryrefslogtreecommitdiff
path: root/JS.md
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2017-01-22 23:29:34 -0800
committerGitHub <noreply@github.com>2017-01-22 23:29:34 -0800
commit0890475869e4bcb4dae5c47c29593c8b1470e02d (patch)
treec62184dff5da7cb458148aa65ec58e094992b061 /JS.md
parent107e0be79dcb42705445a51303dfaea43a415e8c (diff)
downloadnanowasm-design-0890475869e4bcb4dae5c47c29593c8b1470e02d.tar.gz
Clarify WebAssembly.Table "maximum" property (#963)
Text was ambiguous when RangeError is thrown and when the property is None.
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 a02f6a5..1424d70 100644
--- a/JS.md
+++ b/JS.md
@@ -638,9 +638,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"`)).
-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.
+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).
Let `table` be the result of calling
[`Table.create`](https://github.com/WebAssembly/spec/blob/master/interpreter/spec/table.ml#L68)