Skip to content

Commit

Permalink
[Squash] add process.binding('url') to fallthrough whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
starkwang committed Sep 6, 2018
1 parent 5748d9e commit 1f62167
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/bootstrap/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@
'tcp_wrap',
'tls_wrap',
'util',
'async_wrap']);
'async_wrap',
'url']);
process.binding = function binding(name) {
return internalBindingWhitelist.has(name) ?
internalBinding(name) :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ assert(process.binding('v8'));
assert(process.binding('stream_wrap'));
assert(process.binding('signal_wrap'));
assert(process.binding('contextify'));
assert(process.binding('url'));

0 comments on commit 1f62167

Please sign in to comment.