We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d99ecec commit 3f0940aCopy full SHA for 3f0940a
CHANGELOG.md
@@ -4,6 +4,7 @@
4
5
- fix return type of `lua()` / `executeLua()`
6
- strengthen some error handling
7
+- fix: SyntaxError: Unexpected token '?' in cli.js #373
8
9
## [5.1.0](https://github.com/neovim/node-client/compare/v4.11.0...v5.1.0)
10
packages/neovim/bin/cli.js
@@ -15,7 +15,7 @@ if (args[0] === '--version') {
15
16
// "21.6.1" => "21"
17
const nodeMajorVersionStr = process.versions.node.replace(/\..*/, '')
18
-const nodeMajorVersion = Number.parseInt(nodeMajorVersionStr ?? '0')
+const nodeMajorVersion = Number.parseInt(nodeMajorVersionStr ? nodeMajorVersionStr : '0')
19
20
if (
21
process.env.NVIM_NODE_HOST_DEBUG &&
0 commit comments