src: remove unused misc variable

This commit removes the unused 'misc' variable from one of the
NodeMainInstance constructors.

Another option could be to add a default argument to
SetIsolateMiscHandlers but I'd like to hear what others think about that
first.

PR-URL: https://github.com/nodejs/node/pull/33417
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Daniel Bevenius authored and Shelley Vohr committed 2020-06-08 19:32:27 -07:00
1 parent 9883ba6ddd
commit e668376b5b
1 file changed
+1 -2
+1 -2
View File
@@ -39,8 +39,7 @@ NodeMainInstance::NodeMainInstance(Isolate* isolate,
isolate_data_ =
std::make_unique<IsolateData>(isolate_, event_loop, platform, nullptr);
IsolateSettings misc;
SetIsolateMiscHandlers(isolate_, misc);
SetIsolateMiscHandlers(isolate_, {});
}
std::unique_ptr<NodeMainInstance> NodeMainInstance::Create(