@@ -8,15 +8,15 @@ function test_closed(reader) {
8
8
}
9
9
10
10
function test_cancel ( reader ) {
11
- return reader . cancel ( ) . then ( ( function ( param ) {
12
- return Promise . resolve ( ( console . log ( "cancelled" ) , undefined ) ) ;
13
- } ) ) ;
11
+ return reader . cancel ( ) . then ( function ( param ) {
12
+ return Promise . resolve ( ( console . log ( "cancelled" ) , undefined ) ) ;
13
+ } ) ;
14
14
}
15
15
16
16
function test_cancelWith ( reader ) {
17
- return reader . cancel ( "reason" ) . then ( ( function ( reason ) {
18
- return Promise . resolve ( ( console . log ( reason ) , undefined ) ) ;
19
- } ) ) ;
17
+ return reader . cancel ( "reason" ) . then ( function ( reason ) {
18
+ return Promise . resolve ( ( console . log ( reason ) , undefined ) ) ;
19
+ } ) ;
20
20
}
21
21
22
22
function test_releaseLock ( reader ) {
@@ -25,13 +25,13 @@ function test_releaseLock(reader) {
25
25
}
26
26
27
27
function test_read ( reader ) {
28
- return reader . read ( ) . then ( ( function ( next ) {
29
- var __x = next . value ;
30
- return Promise . resolve ( Belt_Option . forEach ( ( __x == null ) ? undefined : Caml_option . some ( __x ) , ( function ( prim ) {
31
- console . log ( prim ) ;
32
-
33
- } ) ) ) ;
34
- } ) ) ;
28
+ return reader . read ( ) . then ( function ( next ) {
29
+ var __x = next . value ;
30
+ return Promise . resolve ( Belt_Option . forEach ( ( __x == null ) ? undefined : Caml_option . some ( __x ) , ( function ( prim ) {
31
+ console . log ( prim ) ;
32
+
33
+ } ) ) ) ;
34
+ } ) ;
35
35
}
36
36
37
37
var DefaultReader__test = {
@@ -59,7 +59,7 @@ function test_getReader(stream) {
59
59
}
60
60
61
61
function test_getReaderBYOB ( stream ) {
62
- return stream . getReader ( ( { "mode" : "byob" } ) ) ;
62
+ return stream . getReader ( { "mode" : "byob" } ) ;
63
63
}
64
64
65
65
function test_tee ( stream ) {
0 commit comments