UNPKG

bugger-v8-client

Version:
23 lines (19 loc) 585 B
'use strict'; var unmarshal = require('../types').unmarshal; function unmarshalBreak(body) { return unmarshal({ body: body }, 'breakpoint'); } module.exports = function(DebugClient) { DebugClient.prototype.listbreakpoints = function (opts) { return ( this._sendRequest('listbreakpoints', opts) .then(function(raw) { return { breakpoints: raw.body.breakpoints.map(unmarshalBreak), breakOnExceptions: raw.body.breakOnExceptions, breakOnUncaughtExceptions: raw.body.breakOnUncaughtExceptions }; }) ); }; };