agsamantha/node_modules/jintr/dist/utils/index.js

10 lines
261 B
JavaScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
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;
}
}
}