From 7fc91a562c3090953e84e384f19a55af702c75ca Mon Sep 17 00:00:00 2001 From: Minwoo Jung Date: Wed, 26 Aug 2015 21:17:52 +0900 Subject: [PATCH] lib: fix identity operator for better performance There is no type-conversion to be done because both parameters are already the same type. Therefore, using the === operator would be better for performance. --- lib/_debugger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_debugger.js b/lib/_debugger.js index b042df554ffdc1..9f8fa26f2189c3 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -173,7 +173,7 @@ Client.prototype._addHandle = function(desc) { this.handles[desc.handle] = desc; - if (desc.type == 'script') { + if (desc.type === 'script') { this._addScript(desc); } };