From 690d8baf31d71721b3d2825795af444cc0a07b98 Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Sun, 3 Sep 2023 18:03:48 +0400 Subject: [PATCH] Reduce helper overhead --- lib/handlebars/runtime.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/handlebars/runtime.js b/lib/handlebars/runtime.js index 36bf6c94..a3ff1e0f 100644 --- a/lib/handlebars/runtime.js +++ b/lib/handlebars/runtime.js @@ -445,6 +445,7 @@ function wrapHelpersToPassLookupProperty(mergedHelpers, container) { function passLookupPropertyOption(helper, container) { const lookupProperty = container.lookupProperty; return wrapHelper(helper, options => { - return Utils.extend({ lookupProperty }, options); + options.lookupProperty = lookupProperty; + return options; }); }