diff --git a/packages/core/pattern.mjs b/packages/core/pattern.mjs index c5b7953c9..0612c10f1 100644 --- a/packages/core/pattern.mjs +++ b/packages/core/pattern.mjs @@ -1741,6 +1741,10 @@ 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\")"); + } + if (Array.isArray(name)) { const result = {}; for (const name_item of name) {