| Index: test/mjsunit/wasm/js-api.js
|
| diff --git a/test/mjsunit/wasm/js-api.js b/test/mjsunit/wasm/js-api.js
|
| index 3ab14d2d2d222dd91b8e208e9c7890c30e529c2b..689a0adbc4e187ed70067d9a1c69f606df95115d 100644
|
| --- a/test/mjsunit/wasm/js-api.js
|
| +++ b/test/mjsunit/wasm/js-api.js
|
| @@ -365,7 +365,7 @@ assertErrorMessage(
|
| assertErrorMessage(
|
| () => new Instance(importingModule, {'': {g: () => {}}}), LinkError, '');
|
| assertErrorMessage(
|
| - () => new Instance(importingModule, {t: {f: () => {}}}), LinkError, '');
|
| + () => new Instance(importingModule, {t: {f: () => {}}}), TypeError, '');
|
|
|
| assertTrue(new Instance(emptyModule) instanceof Instance);
|
| assertTrue(new Instance(emptyModule, {}) instanceof Instance);
|
| @@ -793,12 +793,12 @@ assertInstantiateError(
|
| assertInstantiateError(
|
| [importingModuleBinary, undefined], TypeError, /TODO: error messages?/);
|
| assertInstantiateError(
|
| - [importingModuleBinary, {}], LinkError, /TODO: error messages?/);
|
| + [importingModuleBinary, {}], TypeError, /TODO: error messages?/);
|
| assertInstantiateError(
|
| [importingModuleBinary, {'': {g: () => {}}}], LinkError,
|
| /TODO: error messages?/);
|
| assertInstantiateError(
|
| - [importingModuleBinary, {t: {f: () => {}}}], LinkError,
|
| + [importingModuleBinary, {t: {f: () => {}}}], TypeError,
|
| /TODO: error messages?/);
|
| assertInstantiateError(
|
| [memoryImportingModuleBinary, null], TypeError, /TODO: error messages?/);
|
| @@ -806,10 +806,10 @@ assertInstantiateError(
|
| [memoryImportingModuleBinary, undefined], TypeError,
|
| /TODO: error messages?/);
|
| assertInstantiateError(
|
| - [memoryImportingModuleBinary, {}], LinkError, /TODO: error messages?/);
|
| + [memoryImportingModuleBinary, {}], TypeError, /TODO: error messages?/);
|
| assertInstantiateError(
|
| [memoryImportingModuleBinary, {'mod': {'my_memory': scratch_memory}}],
|
| - LinkError, /TODO: error messages?/);
|
| + TypeError, /TODO: error messages?/);
|
| assertInstantiateError(
|
| [memoryImportingModuleBinary, {'': {'memory': scratch_memory}}], LinkError,
|
| /TODO: error messages?/);
|
|
|