Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
JungMinu committed Aug 26, 2015
commit 7fc91a562c3090953e84e384f19a55af702c75ca
2 changes: 1 addition & 1 deletion lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down