Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

updated arg regex#19

Closed
awolden wants to merge 1 commit intonodegit:masternodegit/promisify-node:masterfrom
awolden:masterawolden/promisify-node:masterCopy head branch name to clipboard
Closed

updated arg regex#19
awolden wants to merge 1 commit intonodegit:masternodegit/promisify-node:masterfrom
awolden:masterawolden/promisify-node:masterCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.