-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Scope loading behaviour instead of using early return #1787
Conversation
Fails under babel_node node_modules/mocha/bin/_mocha Transformation error; return original code { [SyntaxError: node_modules/mocha/bin/_mocha: 'return' outside of function (392:2)] pos: 9902, loc: { line: 392, column: 2 }, raisedAt: 9908, _babel: true, codeFrame: ' 390 | });\n 391 | \n> 392 | return;\n | ^\n 393 | }\n 394 | \n 395 | // load' } based on advice from @oakfang
mocha.files = files; | ||
runner = mocha.run(program.exit ? exit : exitLater); | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add a blank line after the }
.
LGTM |
Added newline. |
👍 thanks, @gaye. I didn't merge but used |
Thanks so much for fixing this @gaye and @jbnicolai! Any chance of deploying a point release on npm which includes this change? |
Will this be released soon? |
👍 |
2 similar comments
👍 |
👍 |
As a note, this went out with 2.3.0 :) |
Fails under babel_node node_modules/mocha/bin/_mocha
Transformation error; return original code
{ [SyntaxError: node_modules/mocha/bin/_mocha: 'return' outside of function (392:2)]
pos: 9902,
loc: { line: 392, column: 2 },
raisedAt: 9908,
_babel: true,
codeFrame: ' 390 | });\n 391 | \n> 392 | return;\n | ^\n 393 | }\n 394 | \n 395 | // load' }
based on advice from @oakfang