We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a2a0e9 commit b731e02Copy full SHA for b731e02
source-map-support.js
@@ -412,7 +412,7 @@ let kIsNodeError = undefined;
412
try {
413
// Get a deliberate ERR_INVALID_ARG_TYPE
414
// TODO is there a better way to reliably get an instance of NodeError?
415
- new Buffer();
+ path.resolve(123);
416
} catch(e) {
417
const symbols = Object.getOwnPropertySymbols(e);
418
const symbol = symbols.find(s => s.toString().indexOf('kIsNodeError') >= 0);
0 commit comments