summaryrefslogtreecommitdiffstats
path: root/spec/env/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/env/common.js')
-rw-r--r--spec/env/common.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/env/common.js b/spec/env/common.js
index 92cc611..62edf1d 100644
--- a/spec/env/common.js
+++ b/spec/env/common.js
@@ -18,7 +18,7 @@ global.compileWithPartials = function(string, hashOrArray, partials) {
ary = [];
ary.push(hashOrArray[0]);
ary.push({ helpers: hashOrArray[1], partials: hashOrArray[2] });
- options = {compat: hashOrArray[3]};
+ options = typeof hashOrArray[3] === 'object' ? hashOrArray[3] : {compat: hashOrArray[3]};
if (hashOrArray[4] != null) {
options.data = !!hashOrArray[4];
ary[1].data = hashOrArray[4];