agsamantha/node_modules/jintr/dist/utils/index.js
2024-10-02 15:15:21 -05:00

9 lines
261 B
JavaScript

export const namedFunction = (name, fn) => Object.defineProperty(fn, 'name', { value: name });
export class JinterError extends Error {
constructor(message, info) {
super(message);
if (info) {
this.info = info;
}
}
}