Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Node.js 15 compatibility #21

Merged
merged 2 commits into from
Nov 18, 2020
Merged

Conversation

fengkx
Copy link
Contributor

@fengkx fengkx commented Nov 17, 2020

The stack format has change in Node15(I am testing on v15.2.0)
RunKit example: https://runkit.com/embed/ufcx3dgrynne
Two changes:

  1. node: is added before interal
  2. tailing .js is removed

Exmaple:

	at Module._compile (internal/modules/cjs/loader.js:1063:30) // node 14
	at Module._compile (node:internal/modules/cjs/loader:1099:14) // node 15

@fengkx
Copy link
Contributor Author

fengkx commented Nov 18, 2020

@sindresorhus Would you take a look on this?

@sindresorhus sindresorhus changed the title Update regex for node>=15 Fix Node.js 15 compatibility Nov 18, 2020
@sindresorhus sindresorhus merged commit 6c0a815 into sindresorhus:master Nov 18, 2020
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.

2 participants