debugger: Don't break on handle === 0
This commit is contained in:
parent
f5fbb707b2
commit
4e1e6a2d15
@ -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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user