From 8f93938cc2532ea54dad9d8fa11fa8d04b3c54d4 Mon Sep 17 00:00:00 2001 From: Sammy Jelin Date: Mon, 24 Aug 2015 12:10:24 -0700 Subject: [PATCH] chore(lint): get linter to pass --- lib/clientsidescripts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/clientsidescripts.js b/lib/clientsidescripts.js index bc47e9381..f53059417 100644 --- a/lib/clientsidescripts.js +++ b/lib/clientsidescripts.js @@ -30,8 +30,9 @@ function wrapWithHelpers(fun) { if (!helpers.length) { return fun; } - return new Function( - helpers.join(';') + ';' + + var FunClass = Function; // Get the linter to allow this eval + return new FunClass( + helpers.join(';') + String.fromCharCode(59) + ' return (' + fun.toString() + ').apply(this, arguments);'); }