Skip to content

Conversation

@awolden
Copy link

@awolden awolden commented Apr 16, 2016

A fix for issue: #18
I have updated the regex to support the following additional function definitions:

test(cb){cb();} //example: class Test { constructor(){} test(cb){cb();} }
(cb)=>{cb()}

I was going to add test cases to prove that it accepts the new function declarations, but I didn't want to break your build in older versions of node since you have .10 and .12 in your .travis.yml

@eddyystop
Copy link

I think support for arrow functions also needs a change in index.js line 88

if (exports.prototype && Object.keys(exports.prototype).length) {

since I've been getting exports.prototype as undefined.

@tbranyen
Copy link
Member

tbranyen commented Jun 5, 2018

Hi @awolden I haven't been active on this project in some time, sorry about that! I've applied changes in #31 which supersedes this PR. Thanks again for your contribution!

@tbranyen tbranyen closed this Jun 5, 2018
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.

3 participants