File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2626- GenType: fix issue with V3 compatibility mode (see https://github.com/rescript-lang/rescript-compiler/issues/5990 ) https://github.com/rescript-lang/rescript-compiler/pull/5992
2727- Fix issue with overlapping labelled argument with default value https://github.com/rescript-lang/syntax/pull/734
2828- Fix issue with using alias and default value together https://github.com/rescript-lang/syntax/pull/734
29+ - Fix issue in ` Js.Promise2 ` where ` then ` and ` catch ` were returning ` undefined ` https://github.com/rescript-lang/rescript-compiler/pull/5996
2930
3031# 10.1.2
3132
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ type error
44/** Type-safe t-first then */
55let then : (promise <'a >, 'a => promise <'b >) => promise <'b > = %raw (`
66 function (p , cont ) {
7- Promise .resolve (p).then (cont)
7+ return Promise .resolve (p).then (cont)
88 }
99 ` )
1010
1111/** Type-safe t-first catch */
1212let catch : (promise <'a >, error => promise <'a >) => promise <'a > = %raw (`
1313 function (p , cont ) {
14- Promise .resolve (p).catch (cont)
14+ return Promise .resolve (p).catch (cont)
1515 }
1616 ` )
1717
Original file line number Diff line number Diff line change 22
33
44var then = ( function ( p , cont ) {
5- Promise . resolve ( p ) . then ( cont )
5+ return Promise . resolve ( p ) . then ( cont )
66 } ) ;
77
88var $$catch = ( function ( p , cont ) {
9- Promise . resolve ( p ) . catch ( cont )
9+ return Promise . resolve ( p ) . catch ( cont )
1010 } ) ;
1111
1212export {
Original file line number Diff line number Diff line change 22
33
44var then = ( function ( p , cont ) {
5- Promise . resolve ( p ) . then ( cont )
5+ return Promise . resolve ( p ) . then ( cont )
66 } ) ;
77
88var $$catch = ( function ( p , cont ) {
9- Promise . resolve ( p ) . catch ( cont )
9+ return Promise . resolve ( p ) . catch ( cont )
1010 } ) ;
1111
1212exports . then = then ;
You can’t perform that action at this time.
0 commit comments