Merge pull request #2590 from paymand/contexts_fix

Don't send the JSON response as Error in getJSONFromUrl().
This commit is contained in:
Jonathan Lipps
2014-05-17 01:44:29 -07:00

View File

@@ -98,7 +98,7 @@ WebKitRemoteDebugger.prototype.getJSONFromUrl = function (host, port, path, cb)
jsonResponse += chunk;
});
response.on('end', function () {
cb(JSON.parse(jsonResponse));
cb(null, JSON.parse(jsonResponse));
});
}).on('error', cb);
};