This commit is contained in:
tyow 2026-03-13 14:11:38 -04:00
parent 7294cd5443
commit ae32743f12

View file

@ -1742,7 +1742,9 @@ export const func = curry((a, b) => reify(b).func(a));
*/
export function register(name, func, patternify = true, preserveSteps = false, join = (x) => x.innerJoin()) {
if (isPattern(name)) {
throw new Error("Name argument for register is a pattern, try using single quotes ('name') instead of double quotes (\"name\")");
throw new Error(
'Name argument for register is a pattern, try using single quotes (\'name\') instead of double quotes ("name")',
);
}
if (Array.isArray(name)) {