async_hooks: use `kEmptyObject`

PR-URL: https://github.com/nodejs/node/pull/43159
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
diff --git a/lib/async_hooks.js b/lib/async_hooks.js
index fed0f07..8638bb4 100644
--- a/lib/async_hooks.js
+++ b/lib/async_hooks.js
@@ -20,6 +20,7 @@
   ERR_ASYNC_TYPE,
   ERR_INVALID_ASYNC_ID
 } = require('internal/errors').codes;
+const { kEmptyObject } = require('internal/util');
 const {
   validateFunction,
   validateString,
@@ -156,7 +157,7 @@
 const destroyedSymbol = Symbol('destroyed');
 
 class AsyncResource {
-  constructor(type, opts = {}) {
+  constructor(type, opts = kEmptyObject) {
     validateString(type, 'type');
 
     let triggerAsyncId = opts;