handlebars.runtime.js in handlebars-source-4.0.13 vs handlebars.runtime.js in handlebars-source-4.0.14

- old
+ new

@@ -1,9 +1,9 @@ /**! @license - handlebars v4.0.13 + handlebars v4.0.14 Copyright (C) 2011-2017 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 @@ -205,11 +205,11 @@ var _logger = __webpack_require__(19); var _logger2 = _interopRequireDefault(_logger); - var VERSION = '4.0.13'; + var VERSION = '4.0.14'; exports.VERSION = VERSION; var COMPILER_REVISION = 7; exports.COMPILER_REVISION = COMPILER_REVISION; var REVISION_CHANGES = { @@ -798,10 +798,16 @@ exports.__esModule = true; exports['default'] = function (instance) { instance.registerHelper('lookup', function (obj, field) { - return obj && obj[field]; + if (!obj) { + return obj; + } + if (field === 'constructor' && !obj.propertyIsEnumerable(field)) { + return undefined; + } + return obj[field]; }); }; module.exports = exports['default']; \ No newline at end of file