From 827711ca8918dae4d792a006372417279bff15f9 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 4 Feb 2016 21:21:57 +0000 Subject: [PATCH] Fix util jshint as we need the behaviour. --- red/runtime/util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/red/runtime/util.js b/red/runtime/util.js index 4992437c8..b2ac2dc50 100644 --- a/red/runtime/util.js +++ b/red/runtime/util.js @@ -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); @@ -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;