Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Nov 15, 2024
1 parent ee913c5 commit ddc3b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/modules/gomodule.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (gm *goModule) Instantiate(rt *sobek.Runtime) (sobek.CyclicModuleInstance,
named := mi.Exports().Named

if named == nil && mi.Exports().Default != nil {
// If named length is 0 but default is defined, then try to work with
// If named is nil but default is defined, then try to work with
// default and extract the names of the object's properties. This
// behavior isn't ESM compatible, but we do want to allow defaults to
// be imported as namespaced object, which is also how node works.
Expand Down

0 comments on commit ddc3b0b

Please sign in to comment.