Update CI configs to v0.6.6

Update lint scripts and CI configs.
This commit is contained in:
Pion
2022-02-06 18:26:25 +00:00
committed by Sean DuBois
parent 1846813609
commit 5dfbe0808d
2 changed files with 4 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '12.x'
node-version: '16.x'
- uses: actions/cache@v2
with:
@@ -129,7 +129,7 @@ jobs:
- name: Download Go
run: curl -sSfL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz | tar -C ~ -xzf -
env:
GO_VERSION: 1.16
GO_VERSION: 1.17
- name: Set Go Root
run: echo "GOROOT=${HOME}/go" >> $GITHUB_ENV

View File

@@ -23,7 +23,6 @@ func awaitPromise(promise js.Value) (js.Value, error) {
return js.Undefined()
})
defer thenFunc.Release()
promise.Call("then", thenFunc)
catchFunc := js.FuncOf(func(this js.Value, args []js.Value) interface{} {
go func() {
@@ -32,7 +31,8 @@ func awaitPromise(promise js.Value) (js.Value, error) {
return js.Undefined()
})
defer catchFunc.Release()
promise.Call("catch", catchFunc)
promise.Call("then", thenFunc).Call("catch", catchFunc)
select {
case result := <-resultsChan: