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
{{ message }}
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
lets="a string";// a comment with the word evalletx={a: "b"}console.log(x?.a);
does not compile.
lets="eval";// a comment without the e wordletx={a: "b"}console.log(x?.a);
does not compile.
the error is
console.log(x?.a);
^
SyntaxError: Invalid or unexpected token
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
but when I dont put eval anywhere, it compiles fine
i use node -r esm file.js to run the project.
The text was updated successfully, but these errors were encountered:
bytemuck
changed the title
Connot compile optional chaining when the word eval is present it file.
Connot compile optional chaining when the word eval is present inside the file.
Apr 26, 2023
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
using esm version 3.2.25
with node v16.19.1
does not compile.
does not compile.
the error is
but when I dont put eval anywhere, it compiles fine
i use
node -r esm file.js
to run the project.The text was updated successfully, but these errors were encountered: