new.target use causes errors in Node v4.
See original GitHub issueI’m not sure what versions of Node are supported but noticed Node v4 erroring because of new.target
use.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
15 Common Error Codes in Node.js and How to Fix Them
15 Common Error Codes in Node.js and How to Fix Them · 1. ECONNRESET · 2. ENOTFOUND · 3. ETIMEDOUT · 4. ECONNREFUSED...
Read more >Best Practices for Node.js Error-handling - Toptal
Using Node.js built-in Error object is a good practice because it includes intuitive and clear information about errors like StackTrace, which most developers ......
Read more >A Comprehensive Guide To Error Handling In Node.js
Errors happen in every application. Devs have to decide: do you write code to handle the error? Suppress it? Notify the user?
Read more >Move from instanceof to new.target check in all function-based ...
Since Node.js uses V8 like Chromium, !new.target should be the correct ... I'm sure it will cause breakage for some, but the performance ......
Read more >Errors | Node.js v19.3.0 Documentation
If present, the error.cause property is the underlying cause of the Error . It is used when catching an error and throwing a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@TimothyGu Ah, should probably be called out in the readme. I was looking for an engines field or something but couldn’t come up with anything.
This also crashes when using Fetch As Google. Usage of ES6 features in published npm packages should be documented. There is currently an unwritten rule to only publish ES5 code.