Skip to content

Commit bb1c687

Browse files
committed
fix: according to the latest specifications of v8 #25
1 parent 89f378d commit bb1c687

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/inserter/js_inserter.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ func (j *JSInserter) Execute(ctx context.Context, cn, path string) error {
3131
return xerrors.Errorf("failed to js read from file: %w", err)
3232
}
3333

34-
v8ctx, err := v8.NewContext()
35-
if err != nil {
36-
return xerrors.Errorf("failed to create v8 context: %w", err)
37-
}
34+
v8ctx := v8.NewContext()
3835

3936
val, err := v8ctx.RunScript(string(b), path)
4037
if err != nil {

0 commit comments

Comments
 (0)