@@ -29,7 +29,7 @@ import array = require( './index' );
2929 array ( { 'buffer' : [ [ 1 , 2 ] , [ 3 , 4 ] ] } ) ; // $ExpectType ndarray
3030}
3131
32- // The function does not compile if provided a first argument which is not an array, buffer, or options object...
32+ // The compiler throws an error if the function is provided a first argument which is not an array, buffer, or options object...
3333{
3434 array ( true ) ; // $ExpectError
3535 array ( false ) ; // $ExpectError
@@ -38,7 +38,7 @@ import array = require( './index' );
3838 array ( null ) ; // $ExpectError
3939}
4040
41- // The function does not compile if provided a second argument which is not an options object...
41+ // The compiler throws an error if the function is provided a second argument which is not an options object...
4242{
4343 const buffer = new Float64Array ( [ 1.0 , 2.0 , 3.0 , 4.0 ] ) ;
4444 array ( buffer , 'abc' ) ; // $ExpectError
@@ -249,7 +249,7 @@ import array = require( './index' );
249249 array ( { 'readonly' : ( x : number ) : number => x } ) ; // $ExpectError
250250}
251251
252- // The function does not compile if provided an invalid number of arguments...
252+ // The compiler throws an error if the function is provided an invalid number of arguments...
253253{
254254 const buffer = new Float64Array ( [ 1.0 , 2.0 , 3.0 , 4.0 ] ) ;
255255 array ( ) ; // $ExpectError
0 commit comments