question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need to patch the standard library

See original GitHub issue

Hey,

Thanks for the polyfill!

util.promisify doesn’t only add the custom promisify argument - it also patches the standard library methods with a custom promisification property. This is useful for things like fs.exists.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ExE-Bosscommented, Jan 6, 2021

A better solution would be to use a global symbol, like I’m proposing in https://github.com/nodejs/node/issues/31647.

1reaction
RyanZimcommented, Jun 21, 2017

not sure why you’d have needed to wait for v4 tho 😃

Just a lack of developer time to get it done. 0.10 & 0.12 EOLed in quick succession.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use fork of standard library to patch go/ast - Stack Overflow
I fixed a tiny bug in go/ast (see the following Github issue). I would like to already use my fix in the project...
Read more >
gevent.monkey – Make the standard library cooperative
The primary purpose of this module is to carefully patch, in place, portions of the standard library with gevent-friendly functions that behave in...
Read more >
Adding to the Stdlib - Python Developer's Guide
The most basic is that the code must meet standard patch requirements. For code that has been developed outside the stdlib typically this...
Read more >
patchymcpatchface - PyPI
A monkey patching library that uses only Python standard library. ... pip install patchymcpatchface pip install pytest (not required if not unit testing) ......
Read more >
Fix your dependencies on C++ library internals - Microsoft Learn
Microsoft has published the source code for the Standard Library, most of the C Runtime Library, and other Microsoft libraries in many ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found