Replace isError lodash verification as it is not reliable
MODIFY
lib/protocol/protocol.js
lib/protocol/protocol.js
@@ -492,7 +492,7 @@ function parseProtocol (driverRes) {
return {isW3C, isMJSONWP, value: driverRes.value};
}
- if (_.isError(driverRes.error)) {
+ if (_.has(driverRes, 'error')) {
return {isW3C, isMJSONWP, error: driverRes.error};
}

Replace isError lodash verification as it is not reliable (#256)