From 6022dbceeb66ce4d6344dc4237c33d0d33457477 Mon Sep 17 00:00:00 2001 From: noel Date: Thu, 19 Sep 2019 11:29:19 +0200 Subject: [PATCH] "let" not supported? --- lib/consolidate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/consolidate.js b/lib/consolidate.js index afcf899..6a1199e 100644 --- a/lib/consolidate.js +++ b/lib/consolidate.js @@ -1774,8 +1774,8 @@ exports.twing.render = function(str, options, cb) { return promisify(cb, function(cb) { var engine = requires.twing || (requires.twing = require('twing')); try { - let rendTmpl = new engine.TwingEnvironment(new engine.TwingLoaderNull()).createTemplate(str).render(options); - let tmpl = cache(options) || cache(options, rendTmpl); + var rendTmpl = new engine.TwingEnvironment(new engine.TwingLoaderNull()).createTemplate(str).render(options); + var tmpl = cache(options) || cache(options, rendTmpl); cb(null, tmpl); } catch (err) { cb(err);