Skip to content
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

Not sure what's wrong here: v10.0.0 #840

Closed
thetutlage opened this issue Apr 6, 2017 · 5 comments

Comments

@thetutlage
Copy link

commented Apr 6, 2017

Just upgrade to version 10 and standard linter says Unexpected token function (undefined)

Code

test('title', async function (assert) {
   // await expression does exists
})
./node_modules/.bin/standard -v
@tunnckoCore

This comment has been minimized.

Copy link

commented Apr 6, 2017

it depends on node version, what you use? also can try to set name for the async fn

@thetutlage

This comment has been minimized.

Copy link
Author

commented Apr 6, 2017

I am on v7.2.0. Also naming the function doesn't change anything

@thetutlage

This comment has been minimized.

Copy link
Author

commented Apr 6, 2017

One more thing, it works fine with v10.0.0-beta.2

@tunnckoCore

This comment has been minimized.

Copy link

commented Apr 6, 2017

I can't reproduce it

~/dev  
% ❯ echo "var test = () => {}; test('foo bar', async function () {})" > issue840.js                        April 06, 18:05:41
~/dev  
% ❯ cat issue840.js                                                                                        April 06, 18:05:43
var test = () => {}; test('foo bar', async function () {})
~/dev  
% ❯ standard --version                                                                                     April 06, 18:05:48
10.0.0
~/dev  
% ❯ standard issue840.js                                                                                   April 06, 18:05:55
~/dev  
% ❯ node --version                                                                                         April 06, 18:06:00
v7.7.1
% ❯
@thetutlage

This comment has been minimized.

Copy link
Author

commented Apr 6, 2017

Weird, uninstalled standard and re-installed it. All went fine, Thanks 😄

@thetutlage thetutlage closed this Apr 6, 2017

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.