diff options
| author | Mircea Trofin <mtrofin@google.com> | 2017-01-22 23:29:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-22 23:29:34 -0800 |
| commit | 0890475869e4bcb4dae5c47c29593c8b1470e02d (patch) | |
| tree | c62184dff5da7cb458148aa65ec58e094992b061 /JS.md | |
| parent | 107e0be79dcb42705445a51303dfaea43a415e8c (diff) | |
| download | nanowasm-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.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |
