Skip to content

Commit

Permalink
Fix util jshint as we need the behaviour.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones authored and Dave Conway-Jones committed Feb 4, 2016
1 parent 76e98f7 commit 827711c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions red/runtime/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ function evaluateNodeProperty(value, type, node, msg) {
if (type === 'str') {
return ""+value;
} else if (type === 'num') {
/*jshint -W053 */
return new Number(value);
} else if (type === 'json') {
return JSON.parse(value);
Expand All @@ -165,6 +166,7 @@ function evaluateNodeProperty(value, type, node, msg) {
} else if (type === 'global' && node) {
return node.context().global.get(value);
} else if (type === 'bool') {
/*jshint -W053 */
return new Boolean(/^true$/i.test(value));
}
return value;
Expand Down

0 comments on commit 827711c

Please sign in to comment.