Skip to content

Commit 0a73da3

Browse files
authored
Improve browser compatibility (#15)
1 parent 252f64c commit 0a73da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ const ignoreList = [
66
];
77

88
// eslint-disable-next-line node/no-deprecated-api
9-
module.exports = (builtinModules || Object.keys(process.binding('natives')))
9+
module.exports = (builtinModules || (process.binding ? Object.keys(process.binding('natives')) : []) || [])
1010
.filter(x => !/^_|^(internal|v8|node-inspect)\/|\//.test(x) && !ignoreList.includes(x))
1111
.sort();

0 commit comments

Comments
 (0)