diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -25,7 +25,11 @@ function whyIsNodeRunning (logger) {
 
   hook.disable()
   var activeResources = [...active.values()].filter(function(r) {
-    if (r.type === 'Timeout' && !r.resource.hasRef()) return false
+    if (
+      r.type === 'Timeout' &&
+      typeof r.resource.hasRef === 'function'
+      && !r.resource.hasRef()
+    ) return false
     return true
   })
Fix issue with excluding unrefed timers in node version <<I>