Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running assemble.create('foo', 'foo') #600

Closed
pburtchaell opened this issue Dec 3, 2014 · 1 comment
Closed

Error when running assemble.create('foo', 'foo') #600

pburtchaell opened this issue Dec 3, 2014 · 1 comment
Labels
Milestone

Comments

@pburtchaell
Copy link
Contributor

Hey I just noticed that when you pass in a plural name for a template that is the same as the singular name, e.g., assemble.create('foo', 'foo');, the following error occurs:

return this[plural].apply(this, arguments);
                        ^
RangeError: Maximum call stack size exceeded

I doubt someone would do this very often (and, yes, I did this intentionally), but might be better to throw an error instead.

@pburtchaell pburtchaell added this to the v0.6.0 milestone Dec 3, 2014
@jonschlinkert
Copy link
Member

closing since this refers to an outdated version of assemble

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants