File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ var Js_promise2 = require("../../lib/js/js_promise2.js");
4
4
5
5
async function nestedPromise ( xxx ) {
6
6
var xx = await xxx ;
7
- Js_promise2 . then_ ( xx , ( function ( x ) {
8
- return Promise . resolve ( ( console . log ( "Promise2.then_ " , x ) , undefined ) ) ;
7
+ Js_promise2 . then ( xx , ( function ( x ) {
8
+ return Promise . resolve ( ( console . log ( "Promise2.then " , x ) , undefined ) ) ;
9
9
} ) ) ;
10
10
Js_promise2 . $$catch ( xx , ( function ( x ) {
11
11
console . log ( "Promise2.catch_" , x ) ;
Original file line number Diff line number Diff line change 3
3
let nestedPromise = async (xxx : promise <promise <int >>) => {
4
4
let xx = await xxx
5
5
6
- let _ = xx -> Js .Promise2 .then_ (x => Js .log2 ("Promise2.then_ " , x ) |> Js .Promise .resolve )
6
+ let _ = xx -> Js .Promise2 .then (x => Js .log2 ("Promise2.then " , x ) |> Js .Promise .resolve )
7
7
let _ = xx -> Js .Promise2 .catch (x => {
8
8
Js .log2 ("Promise2.catch_" , x )
9
9
0 |> Js .Promise .resolve
You can’t perform that action at this time.
0 commit comments