Skip to content

Commit

Permalink
Fix "Invalid type: Is" error when using {% if x is defined %}
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Felchlin authored and fdintino committed May 19, 2018
1 parent 2eaea16 commit 248cf56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,8 @@ Changelog
=========

* Add `forceescape` filter. Fixes [#782](https://github.com/mozilla/nunjucks/issues/782)
* Fix "Invalid type: Is" error for `{% if value is defined %}. Fixes
[#1110](https://github.com/mozilla/nunjucks/issues/1110)

3.1.2 (Feb 23 2018)
-------------------
Expand Down
1 change: 1 addition & 0 deletions nunjucks/src/compiler.js
Expand Up @@ -166,6 +166,7 @@ class Compiler extends Obj {
nodes.Compare,
nodes.InlineIf,
nodes.In,
nodes.Is,
nodes.And,
nodes.Or,
nodes.Not,
Expand Down

0 comments on commit 248cf56

Please sign in to comment.