Commit f96abea8 authored by Franziska Hinkelmann's avatar Franziska Hinkelmann
Browse files

src: use smart pointer instead of new and delete

Use an std::unique_ptr for variables that are deleted
right after creation.

Since the destructor of InspectorTimer is private
but needed by the unique_ptr, define deleter_type as friend.

PR-URL: https://github.com/nodejs/node/pull/17020


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarTimothy Gu <timothygu99@gmail.com>
parent c661dad0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment