UNPKG

stdlazy

Version:

Flexible and debuggable lazy primitive.

17 lines 569 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cannotRecurseSync = exports.LazyError = void 0; class LazyError extends Error { code; constructor(code, message) { super(message); this.code = code; this.name = "LazyError"; } } exports.LazyError = LazyError; function cannotRecurseSync() { return new LazyError("lazies/recursed", "Cannot call `pull` in a synchronous context when the initializer is running."); } exports.cannotRecurseSync = cannotRecurseSync; //# sourceMappingURL=errors.js.map