From 45a0d459d1534d101a24aa614f3cc1dbee1e5482 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Tue, 17 Jan 2017 08:59:43 -0800 Subject: Revert "Clarify Table constructor behavior re. 'maximum'" This reverts commit edae7995cf61a46279702893fe85bd9168b2b0a6. --- JS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'JS.md') 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) -- cgit v1.2.3