Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

debugger: Don't break on handle === 0

  • Loading branch information...
commit 4e1e6a2d15171bdfa23ec5f78362ce40c63d2f14 1 parent f5fbb70
@ry ry authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/_debugger.js
View
5 lib/_debugger.js
@@ -127,7 +127,10 @@ exports.Client = Client;
Client.prototype._addHandle = function(desc) {
- if (typeof desc != 'object' || !desc.handle) throw new Error('bad type');
+ if (typeof desc != 'object' || typeof desc.handle != 'number') {
+ throw new Error('bad type');
+ }
+
this.handles[desc.handle] = desc;
if (desc.type == 'script') {
Please sign in to comment.
Something went wrong with that request. Please try again.