Open MichaelDeBoey opened 2 years ago
For some reason Windows is throwing an error when converting a FunctionDeclaration to a FunctionExpression, while this is perfectly working (as expected) on Linux.
FunctionDeclaration
FunctionExpression
As @mcansh pointed out in https://github.com/remix-run/remix/pull/3987#issuecomment-1218239753, the origin of this problem is coming from ast-types https://github.com/benjamn/ast-types/blob/master/lib/types.ts#L656-L658
ast-types
AST Explorer example (which is failing as well): https://astexplorer.net/#/gist/31f7305e1a29c0565f6efb13709e93a8/latest
CC/ @Daniel15 @ElonVolo @trivikr
For some reason Windows is throwing an error when converting a
FunctionDeclaration
to aFunctionExpression
, while this is perfectly working (as expected) on Linux.As @mcansh pointed out in https://github.com/remix-run/remix/pull/3987#issuecomment-1218239753, the origin of this problem is coming from
ast-types
https://github.com/benjamn/ast-types/blob/master/lib/types.ts#L656-L658AST Explorer example (which is failing as well): https://astexplorer.net/#/gist/31f7305e1a29c0565f6efb13709e93a8/latest
CC/ @Daniel15 @ElonVolo @trivikr