diff options
| author | Mircea Trofin <mtrofin@google.com> | 2017-01-17 08:59:43 -0800 |
|---|---|---|
| committer | Mircea Trofin <mtrofin@google.com> | 2017-01-17 08:59:43 -0800 |
| commit | 45a0d459d1534d101a24aa614f3cc1dbee1e5482 (patch) | |
| tree | d289b877b2e3ed9035e966100468a100e894e14e /JS.md | |
| parent | edae7995cf61a46279702893fe85bd9168b2b0a6 (diff) | |
| download | nanowasm-design-45a0d459d1534d101a24aa614f3cc1dbee1e5482.tar.gz | |
Revert "Clarify Table constructor behavior re. 'maximum'"
This reverts commit edae7995cf61a46279702893fe85bd9168b2b0a6.
Diffstat (limited to 'JS.md')
| -rw-r--r-- | JS.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |
