vendor/assets/javascripts/handlebars.js in handlebars_assets-0.23.8 vs vendor/assets/javascripts/handlebars.js in handlebars_assets-0.23.9

- old
+ new

@@ -1,9 +1,9 @@ /**! @license - handlebars v4.7.3 + handlebars v4.7.7 Copyright (C) 2011-2019 by Yehuda Katz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -276,11 +276,11 @@ var _logger2 = _interopRequireDefault(_logger); var _internalProtoAccess = __webpack_require__(33); - var VERSION = '4.7.3'; + var VERSION = '4.7.7'; exports.VERSION = VERSION; var COMPILER_REVISION = 8; exports.COMPILER_REVISION = COMPILER_REVISION; var LAST_COMPATIBLE_COMPILER_REVISION = 7; @@ -1523,11 +1523,11 @@ if (!obj || !(name in obj)) { throw new _exception2['default']('"' + name + '" not defined in ' + obj, { loc: loc }); } - return obj[name]; + return container.lookupProperty(obj, name); }, lookupProperty: function lookupProperty(parent, propertyName) { var result = parent[propertyName]; if (result == null) { return result; @@ -3901,10 +3901,10 @@ // alternative compiled forms for name lookup and buffering semantics nameLookup: function nameLookup(parent, name /*, type */) { return this.internalNameLookup(parent, name); }, depthedLookup: function depthedLookup(name) { - return [this.aliasable('container.lookup'), '(depths, "', name, '")']; + return [this.aliasable('container.lookup'), '(depths, ', JSON.stringify(name), ')']; }, compilerInfo: function compilerInfo() { var revision = _base.COMPILER_REVISION, versions = _base.REVISION_CHANGES[revision]; \ No newline at end of file