Skip to content

Commit

Permalink
Merge 85e1541 into 4f5c142
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Mar 28, 2023
2 parents 4f5c142 + 85e1541 commit 296217b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/tc39/tc39_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"os"
"path"
"runtime"
Expand Down Expand Up @@ -281,7 +281,7 @@ func parseTC39File(name string) (*tc39Meta, string, error) {
}
defer f.Close() //nolint:errcheck,gosec

b, err := ioutil.ReadAll(f)
b, err := io.ReadAll(f)
if err != nil {
return nil, "", err
}
Expand Down Expand Up @@ -550,7 +550,7 @@ func (ctx *tc39TestCtx) init() {
ctx.prgCache = make(map[string]*goja.Program)
ctx.errors = make(map[string]string)

b, err := ioutil.ReadFile("./breaking_test_errors.json")
b, err := os.ReadFile("./breaking_test_errors.json")
if err != nil {
panic(err)
}
Expand All @@ -577,7 +577,7 @@ func (ctx *tc39TestCtx) compile(base, name string) (*goja.Program, error) {
}
defer f.Close() //nolint:gosec,errcheck

b, err := ioutil.ReadAll(f)
b, err := io.ReadAll(f)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -648,7 +648,7 @@ func (ctx *tc39TestCtx) runTC39Script(name, src string, includes []string, vm *g
}

func (ctx *tc39TestCtx) runTC39Tests(name string) {
files, err := ioutil.ReadDir(path.Join(ctx.base, name))
files, err := os.ReadDir(path.Join(ctx.base, name))
if err != nil {
ctx.t.Fatal(err)
}
Expand Down

0 comments on commit 296217b

Please sign in to comment.