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

Make compatible with promisify-node 0.4.0#1365

Closed
olivierlemasle wants to merge 1 commit intonodegit:masternodegit/nodegit:masterfrom
olivierlemasle:upgrade-promisify-nodeolivierlemasle/nodegit:upgrade-promisify-nodeCopy head branch name to clipboard
Closed

Make compatible with promisify-node 0.4.0#1365
olivierlemasle wants to merge 1 commit intonodegit:masternodegit/nodegit:masterfrom
olivierlemasle:upgrade-promisify-nodeolivierlemasle/nodegit:upgrade-promisify-nodeCopy head branch name to clipboard

Conversation

@olivierlemasle
Copy link

The test function is required to force promisify-node to promisify native functions, because async inference based on argument's names cannot work on native functions.

With promisify-node ~0.3.0, functions were always promisify, even if they were not considered asynchronous by async inference. The change of behavior was introduced "insidiously" in nodegit/promisify-node#15.

The `test` function is required to force promisify-node
to promisify native functions, because async inference
based on argument's names cannot work on native functions.

With promisify-node ~0.3.0, functions were always
promisify, even if they were not considered asynchronous
by async inference.
@olivierlemasle
Copy link
Author

Superseded by #1519.

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.

1 participant

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