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
$ node output.jsoutput.js:1function(x) {^^^^^^^^SyntaxError: Function statements require a function name at Object.compileFunction (node:vm:360:18) at wrapSafe (node:internal/modules/cjs/loader:1088:15) at Module._compile (node:internal/modules/cjs/loader:1123:27) at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) at Module.load (node:internal/modules/cjs/loader:1037:32) at Module._load (node:internal/modules/cjs/loader:878:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47Node.js v18.11.0
Version
1.3.14 (default SWC playground)
Additional context
Note that this is a different issue with #6353. #6353 is about a property access of async function without function call and this issue is about a property access of function call.
The text was updated successfully, but these errors were encountered:
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
input.js
terminates without error but the output codethrows
SyntaxError
.Input code
Config
No response
Playground link
https://play.swc.rs/?version=1.3.14&code=H4sIAAAAAAAAA9NQqFCwtVMwUNBU0ABiPSBXV1fBWgEAsCfsmRgAAAA%3D&config=H4sIAAAAAAAAA0WMTQrEIAxG75K1286id5hDBCctFv9IUhgR714tlu7C915ehUMsrBUyshCPS0pU%2FMMKZAOKZZcVTNf6tKEXagYUeScdiiyd%2BZSEJjUQXHRbGSWbQmYSeRHG3T9m66GQfucYKmjJdAc%2F0N7G%2FHPynaLySe0Cj9ke9LUAAAA%3D
Expected behavior
Input code is terminated without error:
$ node input.js # no error
Actual behavior
Output code throws
SyntaxError
:Version
1.3.14 (default SWC playground)
Additional context
Note that this is a different issue with #6353.
#6353 is about a property access of
async
function without function call and this issue is about a property access of function call.The text was updated successfully, but these errors were encountered: