@@ -214,23 +214,6 @@ import dasumpw = require( './index' );
214214	} ) ; 
215215	const  mod  =  dasumpw . Module (  mem  ) ; 
216216
217- 	mod . main (  10 ,  '10' ,  0 ,  1  ) ;  // $ExpectError 
218- 	mod . main (  10 ,  true ,  0 ,  1  ) ;  // $ExpectError 
219- 	mod . main (  10 ,  false ,  0 ,  1  ) ;  // $ExpectError 
220- 	mod . main (  10 ,  null ,  0 ,  1  ) ;  // $ExpectError 
221- 	mod . main (  10 ,  undefined ,  0 ,  1  ) ;  // $ExpectError 
222- 	mod . main (  10 ,  [ ] ,  0 ,  1  ) ;  // $ExpectError 
223- 	mod . main (  10 ,  { } ,  0 ,  1  ) ;  // $ExpectError 
224- 	mod . main (  10 ,  (  x : number  ) : number  =>  x ,  0 ,  1  ) ;  // $ExpectError 
225- } 
226- 
227- // The compiler throws an error if the `main` method of a module instance is provided a third argument which is not a number... 
228- { 
229- 	const  mem  =  new  Memory ( { 
230- 		'initial' : 1 
231- 	} ) ; 
232- 	const  mod  =  dasumpw . Module (  mem  ) ; 
233- 
234217	mod . main (  10 ,  '10' ,  1  ) ;  // $ExpectError 
235218	mod . main (  10 ,  true ,  1  ) ;  // $ExpectError 
236219	mod . main (  10 ,  false ,  1  ) ;  // $ExpectError 
@@ -241,7 +224,7 @@ import dasumpw = require( './index' );
241224	mod . main (  10 ,  (  x : number  ) : number  =>  x ,  1  ) ;  // $ExpectError 
242225} 
243226
244- // The compiler throws an error if the `main` method of a module instance is provided a fourth  argument which is not a number... 
227+ // The compiler throws an error if the `main` method of a module instance is provided a third  argument which is not a number... 
245228{ 
246229	const  mem  =  new  Memory ( { 
247230		'initial' : 1 
@@ -268,7 +251,7 @@ import dasumpw = require( './index' );
268251	mod . main ( ) ;  // $ExpectError 
269252	mod . main (  10  ) ;  // $ExpectError 
270253	mod . main (  10 ,  0  ) ;  // $ExpectError 
271- 	mod . main (  10 ,  0 ,  1 ,  5 ,   2  ) ;  // $ExpectError 
254+ 	mod . main (  10 ,  0 ,  1 ,  5  ) ;  // $ExpectError 
272255} 
273256
274257// The `Module` constructor returns a module instance having an `ndarray` method which returns a number... 
@@ -305,23 +288,6 @@ import dasumpw = require( './index' );
305288	} ) ; 
306289	const  mod  =  dasumpw . Module (  mem  ) ; 
307290
308- 	mod . ndarray (  5.0 ,  '10' ,  0 ,  1 ,  0  ) ;  // $ExpectError 
309- 	mod . ndarray (  5.0 ,  true ,  0 ,  1 ,  0  ) ;  // $ExpectError 
310- 	mod . ndarray (  5.0 ,  false ,  0 ,  1 ,  0  ) ;  // $ExpectError 
311- 	mod . ndarray (  5.0 ,  null ,  0 ,  1 ,  0  ) ;  // $ExpectError 
312- 	mod . ndarray (  5.0 ,  undefined ,  0 ,  1 ,  0  ) ;  // $ExpectError 
313- 	mod . ndarray (  5.0 ,  [ ] ,  0 ,  1 ,  0  ) ;  // $ExpectError 
314- 	mod . ndarray (  5.0 ,  { } ,  0 ,  1 ,  0  ) ;  // $ExpectError 
315- 	mod . ndarray (  5.0 ,  (  x : number  ) : number  =>  x ,  0 ,  1 ,  0  ) ;  // $ExpectError 
316- } 
317- 
318- // The compiler throws an error if the `ndarray` method of a module instance is provided a third argument which is not a number... 
319- { 
320- 	const  mem  =  new  Memory ( { 
321- 		'initial' : 1 
322- 	} ) ; 
323- 	const  mod  =  dasumpw . Module (  mem  ) ; 
324- 
325291	mod . ndarray (  10 ,  '10' ,  1 ,  0  ) ;  // $ExpectError 
326292	mod . ndarray (  10 ,  true ,  1 ,  0  ) ;  // $ExpectError 
327293	mod . ndarray (  10 ,  false ,  1 ,  0  ) ;  // $ExpectError 
@@ -332,7 +298,7 @@ import dasumpw = require( './index' );
332298	mod . ndarray (  10 ,  (  x : number  ) : number  =>  x ,  1 ,  0  ) ;  // $ExpectError 
333299} 
334300
335- // The compiler throws an error if the `ndarray` method of a module instance is provided a fourth  argument which is not a number... 
301+ // The compiler throws an error if the `ndarray` method of a module instance is provided a third  argument which is not a number... 
336302{ 
337303	const  mem  =  new  Memory ( { 
338304		'initial' : 1 
@@ -349,7 +315,7 @@ import dasumpw = require( './index' );
349315	mod . ndarray (  10 ,  0 ,  (  x : number  ) : number  =>  x ,  0  ) ;  // $ExpectError 
350316} 
351317
352- // The compiler throws an error if the `ndarray` method of a module instance is provided a fifth  argument which is not a number... 
318+ // The compiler throws an error if the `ndarray` method of a module instance is provided a fourth  argument which is not a number... 
353319{ 
354320	const  mem  =  new  Memory ( { 
355321		'initial' : 1 
@@ -377,5 +343,5 @@ import dasumpw = require( './index' );
377343	mod . ndarray (  10  ) ;  // $ExpectError 
378344	mod . ndarray (  10 ,  0  ) ;  // $ExpectError 
379345	mod . ndarray (  10 ,  0 ,  1  ) ;  // $ExpectError 
380- 	mod . ndarray (  10 ,  0 ,  1 ,  0 ,  10 ,   2  ) ;  // $ExpectError 
346+ 	mod . ndarray (  10 ,  0 ,  1 ,  0 ,  10  ) ;  // $ExpectError 
381347} 
0 commit comments