UNPKG

happner

Version:

distributed application engine with evented storage and mesh services

20 lines (16 loc) 440 B
module.exports = function () { return new Moonface(); }; function Moonface() { this.rideTheSlipperySlip = function ($happn, one, two, three, callback) { $happn.emit('whoops', 'whoa'); callback(undefined, one + ' ' + two + ' ' + three + ', wheeeeeeeeeeeeheeee!'); }; this.haveAnAccident = function (callback) { throw ( e = new Error('Stray patch of glue.'), e.name = 'SlipFailure', e ) } }