@@ -29,7 +29,7 @@ import array = require( './index' );
29
29
array ( { 'buffer' : [ [ 1 , 2 ] , [ 3 , 4 ] ] } ) ; // $ExpectType ndarray
30
30
}
31
31
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...
33
33
{
34
34
array ( true ) ; // $ExpectError
35
35
array ( false ) ; // $ExpectError
@@ -38,7 +38,7 @@ import array = require( './index' );
38
38
array ( null ) ; // $ExpectError
39
39
}
40
40
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...
42
42
{
43
43
const buffer = new Float64Array ( [ 1.0 , 2.0 , 3.0 , 4.0 ] ) ;
44
44
array ( buffer , 'abc' ) ; // $ExpectError
@@ -249,7 +249,7 @@ import array = require( './index' );
249
249
array ( { 'readonly' : ( x : number ) : number => x } ) ; // $ExpectError
250
250
}
251
251
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...
253
253
{
254
254
const buffer = new Float64Array ( [ 1.0 , 2.0 , 3.0 , 4.0 ] ) ;
255
255
array ( ) ; // $ExpectError
0 commit comments