Skip to content

Commit 7636912

Browse files
burgerboydaddyTrott
authored andcommitted
Fixing found issues
1 parent 61b495a commit 7636912

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/internal/bootstrap/node.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
{
184184
// Install legacy getters on the `util` binding for typechecking.
185185
// TODO(addaleax): Turn into a full runtime deprecation.
186-
const { pendingDeprecation } = internalBinding('options').getOptions();
186+
const { pendingDeprecation } = process.binding('config');
187187
const utilBinding = internalBinding('util');
188188
const types = internalBinding('types');
189189
for (const name of [
@@ -635,9 +635,7 @@
635635
const { kExpandStackSymbol } = NativeModule.require('internal/util');
636636
if (typeof er[kExpandStackSymbol] === 'function')
637637
er[kExpandStackSymbol]();
638-
} catch {
639-
// Nothing to be done about it at this point.
640-
}
638+
} catch (er) {}
641639
return false;
642640
}
643641

0 commit comments

Comments
 (0)