Skip to content

Commit b731e02

Browse files
committed
fix
1 parent 8a2a0e9 commit b731e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source-map-support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ let kIsNodeError = undefined;
412412
try {
413413
// Get a deliberate ERR_INVALID_ARG_TYPE
414414
// TODO is there a better way to reliably get an instance of NodeError?
415-
new Buffer();
415+
path.resolve(123);
416416
} catch(e) {
417417
const symbols = Object.getOwnPropertySymbols(e);
418418
const symbol = symbols.find(s => s.toString().indexOf('kIsNodeError') >= 0);

0 commit comments

Comments
 (0)