You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently most go modules that export something will just have is a none goja.Value in the modules#Exports. But goja practically only works with goja.Value. So in practically any place where this will be "imported" - it will also be wrapped in one.
This does mean that something simple such as
exportdefaultfunction(){}// to skip errorimportk6from"k6";console.log(k6.check==k6.check);
will log false .
Some modules such as k6/http has practically fixed this by having a real goja Object instead of expecting that if it had map[string]func()... it will do the right thing.
What?
Currently most go modules that export something will just have is a none goja.Value in the modules#Exports. But goja practically only works with goja.Value. So in practically any place where this will be "imported" - it will also be wrapped in one.
This does mean that something simple such as
will log
false
.Some modules such as
k6/http
has practically fixed this by having a real goja Object instead of expecting that if it hadmap[string]func()...
it will do the right thing.I hit this while making test for #3706
k6/js/modules/k6/timers/timers.go
Lines 67 to 70 in 191c961
The text was updated successfully, but these errors were encountered: