File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ jobs:
115115 - name : Use Node.js
116116 uses : actions/setup-node@v2
117117 with :
118- node-version : ' 12 .x'
118+ node-version : ' 16 .x'
119119
120120 - uses : actions/cache@v2
121121 with :
@@ -129,7 +129,7 @@ jobs:
129129 - name : Download Go
130130 run : curl -sSfL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -C ~ -xzf -
131131 env :
132- GO_VERSION : 1.16
132+ GO_VERSION : 1.17
133133
134134 - name : Set Go Root
135135 run : echo "GOROOT=${HOME}/go" >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ func awaitPromise(promise js.Value) (js.Value, error) {
2323 return js .Undefined ()
2424 })
2525 defer thenFunc .Release ()
26- promise .Call ("then" , thenFunc )
2726
2827 catchFunc := js .FuncOf (func (this js.Value , args []js.Value ) interface {} {
2928 go func () {
@@ -32,7 +31,8 @@ func awaitPromise(promise js.Value) (js.Value, error) {
3231 return js .Undefined ()
3332 })
3433 defer catchFunc .Release ()
35- promise .Call ("catch" , catchFunc )
34+
35+ promise .Call ("then" , thenFunc ).Call ("catch" , catchFunc )
3636
3737 select {
3838 case result := <- resultsChan :
You can’t perform that action at this time.
0 commit comments