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
As you can see, the function is defined before cli(), its name is log instead __default and it's declared instead assigned to a variable. As possible solution could be build a similar code, independently of whether the function has name or not:
The bug reported here #9250 is not fixed yet.
I have the following script:
That imports the following code:
After compile and run it, I get this error:
Checking with
deno bundle
the output code is the following:As you can see,
cli()
is executed before define__default
.If I set a name to the function in log.js:
The ouput code of
deno bundle
is a bit different:As you can see, the function is defined before
cli()
, its name islog
instead__default
and it's declared instead assigned to a variable. As possible solution could be build a similar code, independently of whether the function has name or not:The text was updated successfully, but these errors were encountered: