-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected token '||=' on node < 15 #264
Comments
Last successful fetch was "2023-11-03 06:30:29.881" according to the epic-games.json log |
Can't reproduce. Looks like you use some very old version of node. ||= was added in v15: The docker image has a newer version, so idk how that should be possible. |
Are you still on bullseye or which OS are you using? See https://nodejs.org/en/download/ for how to install a newer version. |
Running on Win 11. Node version reported by gitbash is v14.17.3 |
But maybe a good idea to check the node version in the script if that's possible without tripping up the lexer already for old versions. |
Yea, as expected, doesn't work: Could check |
Put the constraint in |
Whether using the docker container or locally , I have been seeing this problem:
file:///{PATH}/free-games-claimer/gog.js:
89
db.data[user] ||= {};
^^^
SyntaxError: Unexpected token '||='
←[90m at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)←[39m
←[90m at async link (internal/modules/esm/module_job.js:63:21)←[39m
Same behavior for prime, gog, and epic
The text was updated successfully, but these errors were encountered: