From ddc3b0b1d23c128e34e2792fc9075f9126e32375 Mon Sep 17 00:00:00 2001 From: ankur22 Date: Fri, 15 Nov 2024 09:59:02 +0000 Subject: [PATCH] Update comment --- js/modules/gomodule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/modules/gomodule.go b/js/modules/gomodule.go index 385d498ac68..dea074af3ec 100644 --- a/js/modules/gomodule.go +++ b/js/modules/gomodule.go @@ -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.