mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
debugger: Don't break on handle === 0
This commit is contained in:
1 parent
f5fbb707b2
commit
4e1e6a2d15
1 file changed
+4
-1
+4
-1
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user