summaryrefslogtreecommitdiff
path: root/lib/domain.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/domain.js')
-rw-r--r--lib/domain.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/domain.js b/lib/domain.js
index 148d3a27aa..364d8c7d4a 100644
--- a/lib/domain.js
+++ b/lib/domain.js
@@ -219,7 +219,7 @@ Domain.prototype.dispose = function() {
// so it's quite possible that calling some of these methods
// might cause additional exceptions to be thrown.
endMethods.forEach(function(method) {
- if (typeof m[method] === 'function') {
+ if (IS_FUNCTION(m[method])) {
try {
m[method]();
} catch (er) {}