We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4a54ad commit fea3183Copy full SHA for fea3183
lib/handlebars/runtime.js
@@ -116,7 +116,7 @@ export function template(templateSpec, env) {
116
// Just add water
117
let container = {
118
strict: function (obj, name, loc) {
119
- if (!obj || !(name in obj)) {
+ if (!obj || (typeof obj === 'object' && obj !== null && !(name in obj))) {
120
throw new Exception('"' + name + '" not defined in ' + obj, {
121
loc: loc,
122
});
0 commit comments