| Index: test/mjsunit/wasm/table.js
|
| diff --git a/test/mjsunit/wasm/table.js b/test/mjsunit/wasm/table.js
|
| index 04957036514026f44dfc0d0676d0a16bb4327314..c04e3e2ad1de204e7ce9fa3f39e2fb7fb630cd68 100644
|
| --- a/test/mjsunit/wasm/table.js
|
| +++ b/test/mjsunit/wasm/table.js
|
| @@ -7,6 +7,7 @@
|
| // Basic tests.
|
|
|
| var outOfUint32RangeValue = 1e12;
|
| +var int32ButOob = 1073741824;
|
|
|
| (function TestConstructor() {
|
| assertTrue(WebAssembly.Table instanceof Function);
|
| @@ -35,6 +36,8 @@ var outOfUint32RangeValue = 1e12;
|
| assertThrows(() => new WebAssembly.Table({element: "anyfunc", initial: 10, maximum: outOfUint32RangeValue}), RangeError);
|
| assertThrows(() => new WebAssembly.Table({element: "anyfunc", initial: 10, maximum: 9}), RangeError);
|
|
|
| + assertThrows(() => new WebAssembly.Table({element: "anyfunc", initial: 0, maximum: int32ButOob}));
|
| +
|
| let table = new WebAssembly.Table({element: "anyfunc", initial: 1});
|
| assertSame(WebAssembly.Table.prototype, table.__proto__);
|
| assertSame(WebAssembly.Table, table.constructor);
|
|
|