Skip to content

Commit 6f82b03

Browse files
committed
engineScript: use external response callback instead of the one proxied inside sandbox
1 parent 147298d commit 6f82b03

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/render/engineScript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ module.exports = function (inputs, callback, done) {
174174
}
175175

176176
if (typeof templateHelpers !== 'object') {
177-
return sandboxContext.respond(new Error('helpers must be string or plain object'))
177+
return respondWrap(new Error('helpers must be string or plain object'))
178178
}
179179
} else {
180180
templateHelpers = {}
@@ -190,6 +190,6 @@ module.exports = function (inputs, callback, done) {
190190
mainSource: originalTemplateHelpersStr
191191
})
192192
} catch (e) {
193-
sandboxContext.respond(e)
193+
respondWrap(e)
194194
}
195195
}

0 commit comments

Comments
 (0)