Skip to content

Commit 5dfbe08

Browse files
pionbotSean-Der
authored andcommitted
Update CI configs to v0.6.6
Update lint scripts and CI configs.
1 parent 1846813 commit 5dfbe08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

js_utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)