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

[Macros] TypeError: Cannot read property '__keywords' of undefined #57

Closed
devoidfury opened this issue Feb 11, 2013 · 4 comments
Closed
Labels

Comments

@devoidfury
Copy link
Contributor

I found the issue I was having before. Test case:

s = render('{% macro foo(x, y) %}{{ x.x }}{{ y.x }}{% endmacro %}' +
    '{{ foo(bar, baz) }}');
s.should.equal('');

The error is TypeError: Cannot read property '__keywords' of undefined

Macros should have the same behavior with undefined names as regular templates.

(Edit: I don't have this issue in v0.1.7)

@jlongster
Copy link
Contributor

Thanks, I'll look into this.

@jlongster
Copy link
Contributor

This should be fixed by @bhagany in #70

@jlongster
Copy link
Contributor

Reopening, I just hit the error again even with the supposed fix. Need to look into it more.

@jlongster jlongster reopened this Apr 25, 2013
@garygreen garygreen added the bug label Oct 25, 2014
@jlongster
Copy link
Contributor

Haven't heard this reported in forever, so closing until we find a test case

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

3 participants