bugger-v8-client
Version:
Client for v8 debug protocol
21 lines (17 loc) • 418 B
JavaScript
;
function MapProxy(objectId) {
this.type = 'object';
this.subtype = 'map';
this.objectId = objectId;
this.className = 'Map';
this.description = 'Map';
}
MapProxy.unmarshal = function(raw, reviver, scopePath) {
if (scopePath === '?:?') {
throw new Error('Needs scopePath');
}
return new MapProxy(
'scope-handle:' + scopePath + ':' + raw.handle
);
};
module.exports = MapProxy;