Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbug: return.5 #873
Comments
This comment has been minimized.
This comment has been minimized.
LinusU
closed this
May 2, 2017
This comment has been minimized.
This comment has been minimized.
|
No, the example is return.5 which does indeed return 0.5. But standard reforms the statement to return0.5 which is a bug, since return0 is undefined and u.5 (for undefined u) is a syntax error. |
dcousens
added
the
bug
label
May 3, 2017
dcousens
reopened this
May 3, 2017
This comment has been minimized.
This comment has been minimized.
|
This should be filed upstream to ESLint... but, |
This comment has been minimized.
This comment has been minimized.
|
Ah, my bad, sorry about that :) |
This comment has been minimized.
This comment has been minimized.
not-an-aardvark
commented
May 21, 2017
|
This was fixed in eslint/eslint@2754141. |
dcousens
closed this
May 22, 2017
This comment has been minimized.
This comment has been minimized.
|
In my defense, it wasn't my JS code. I was using standard to make the horribly formatted code legible. Because... standard rocks! Thanks for fixing the bug. /hugs |
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.

Eljay-Adobe commentedMay 2, 2017
// standard 10.0.2
standard --fix --stdin <goof.js
// contents of goof.js
function goof() {
return.5
}
...becomes...
function goof() {
return0.5
}