bugger-v8-client
Version:
Client for v8 debug protocol
22 lines (18 loc) • 472 B
JavaScript
;
function RemoteError(objectId, className, description) {
this.type = 'object';
this.objectId = objectId;
this.className = className;
this.description = description;
}
RemoteError.unmarshal = function(raw, reviver, scopePath) {
if (scopePath === '?:?') {
throw new Error('Needs scopePath');
}
return new RemoteError(
'scope-handle:' + scopePath + ':' + raw.handle,
raw.className,
raw.text
);
}
module.exports = RemoteError;