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.

Don't use __dirname in testCommon

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
ralphtheninjacommented, Jun 23, 2018

Unassigned myself for now and closed incorrect PR.

1reaction
vweeverscommented, Jun 23, 2018

collect-iterator-entries could also check which context it’s running in, and do process.nextTick() if present and fallback to setTimeout().

I prefer that being passed in. I.e. use process.nextTick unless a custom nextTick function is provided.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transition from __dirname to import.meta.url could be ...
using --experimental-modules. We could improve the documentation: import.meta.url is not an equivalent of __dirname several lines of code ...
Read more >
Why using dirname in find command gives dots for each ...
I'm used to basename giving you the name of the file (in this case file.ext ) and dirname giving you the rest of...
Read more >
test/lib/TestGyp.py - platform/external/chromium_org/tools/ ...
Note: Don't use this as a generic "rename" operation. In the. future, "relocating" parts of a GYP tree may affect the state of....
Read more >
Alternatives to __dirname in Node.js with ES modules
To be fair, this is not really a new problem: __dirname and __filename aren't shared either, but import.meta.url is! So, using it directly ......
Read more >
tools/fuzz-test.sh · master · Wireshark Foundation ... - GitLab
dirname "$0" )"/test-common.sh || exit 1 # Sanity check to make sure we ... ulimit -c unlimited # Don't enable ulimit -v when...
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