Skip to content

Commit

Permalink
fix: native prefix instead of internal
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqueiroz committed Nov 25, 2024
1 parent d09759a commit ccaf9b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interpreter/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ func LoadBuiltInModule(path string, namespace *environment.Environment) error {
func LoadModule(path string) (Module, error) {
namespace := environment.NewEnvironment(nil)

if len(path) >= 9 && path[:9] == "internal/" {
err := LoadInternalModule(path[9:], namespace)
if len(path) >= 7 && path[:7] == "native/" {
err := LoadInternalModule(path[7:], namespace)

if err != nil {
return Module{}, err
}

return Module{
Name: path[9:],
Name: path[7:],
Environment: namespace,
}, nil
}
Expand Down

0 comments on commit ccaf9b4

Please sign in to comment.