You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert(`You attempted to overwrite the built-in helper "${key}" which is not allowed. Please rename the helper.`,!(builtInHelpers[key]&&this.owner.hasRegistration(`helper:${key}`)));
assert(`Could not find component named "${key}" (no component or template with that name was found)`,!isBlock||this.hasHelper(key));
161
198
}
162
199
163
-
letnativeSyntax=super.refineStatement(statement);
164
-
assert(`Helpers may not be used in the block form, for example {{#${key}}}{{/${key}}}. Please use a component, or alternatively use the helper in combination with a built-in Ember helper, for example {{#if (${key})}}{{/if}}.`,!nativeSyntax&&key&&this.hasHelper(key) ? !isBlock : true);
200
+
assert(`Helpers may not be used in the block form, for example {{#${key}}}{{/${key}}}. Please use a component, or alternatively use the helper in combination with a built-in Ember helper, for example {{#if (${key})}}{{/if}}.`,!isBlock||!this.hasHelper(key));
201
+
165
202
assert(`Helpers may not be used in the element form.`,!nativeSyntax&&key&&this.hasHelper(key) ? !isModifier : true);
0 commit comments