10 lines
261 B
JavaScript
10 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;
|
||
|
}
|
||
|
}
|
||
|
}
|