From 0890475869e4bcb4dae5c47c29593c8b1470e02d Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Sun, 22 Jan 2017 23:29:34 -0800 Subject: Clarify WebAssembly.Table "maximum" property (#963) Text was ambiguous when RangeError is thrown and when the property is None. --- JS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'JS.md') 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) -- cgit v1.2.3