Skip to content

Commit

Permalink
Fix require crash
Browse files Browse the repository at this point in the history
  • Loading branch information
foxcpp committed Feb 6, 2022
1 parent 040758c commit 6e2ac7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interp/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ func init() {

func LoadScript(cmdStream []parser.Cmd, opts *Options) (*Script, error) {
s := &Script{
opts: opts,
extensions: map[string]struct{}{},
opts: opts,
}

loadedCmds, err := LoadBlock(s, cmdStream)
Expand Down

0 comments on commit 6e2ac7f

Please sign in to comment.