Skip to content

updated arg regex#19

Closed
awolden wants to merge 1 commit into
nodegit:masterfrom
awolden:master
Closed

updated arg regex#19
awolden wants to merge 1 commit into
nodegit:masterfrom
awolden:master

Conversation

@awolden

@awolden awolden commented Apr 16, 2016

Copy link
Copy Markdown

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
Copy Markdown

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

tbranyen commented Jun 5, 2018

Copy link
Copy Markdown
Member

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