bahmutov / bahmutov/center-code
Error when has async function
Open
- Dominant language
- JavaScript
- Stars
- 37
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
I just tried this code `test.js`:
```js
async function foo() {
console.log('Hello world!')
}
hello()
```
and run `center test.js`
it tells me:
```
// other logs...
at IO.unsafePerformIO (/Users/xxx/.nvm/versions/node/v14.17.6/lib/node_modules/center-code/node_modules/ramda/dist/ramda.js:44:27) {
lineNumber: 1,
description: 'Unexpected token function',
index: 6,
message: 'Unable to perform highlight. The code contained syntax errors: Line 1: Unexpected token function'
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.