UNPKG

stackedy

Version:

Roll your own stack traces and control program execution through AST manipulation

11 lines (8 loc) 194 B
module.exports = Doom; function Doom (obj) { if (!(this instanceof Doom)) return new Doom(obj); this.value = obj; } Doom.prototype.gloom = function (n) { return this.value + n; };