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

Scope loading behaviour instead of using early return #1787

Closed
wants to merge 2 commits into from

Conversation

aryeguy
Copy link
Contributor

@aryeguy aryeguy commented Jul 6, 2015

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

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);

}

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 }.

@jbnicolai
Copy link

LGTM

@aryeguy
Copy link
Contributor Author

aryeguy commented Jul 8, 2015

Added newline.

@jbnicolai jbnicolai closed this in 952dca7 Jul 8, 2015
@jbnicolai
Copy link

👍 thanks, @gaye. I didn't merge but used git am to squash both commits together.

@leebyron
Copy link

Thanks so much for fixing this @gaye and @jbnicolai! Any chance of deploying a point release on npm which includes this change?

@shannonmoeller
Copy link

Will this be released soon?

@mysterycommand
Copy link

👍

2 similar comments
@sapegin
Copy link

sapegin commented Aug 25, 2015

👍

@abelnation
Copy link

👍

@danielstjules
Copy link
Contributor

As a note, this went out with 2.3.0 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants