diff --git a/lib/utils/object.js b/lib/utils/object.js index 203ea17d1..a163e7f6c 100644 --- a/lib/utils/object.js +++ b/lib/utils/object.js @@ -154,7 +154,7 @@ exports.canDefineProperty = function () { // test needed for broken IE8 implementation try { if (Object.defineProperty) { - Object.defineProperty({}, 'x', {}); + Object.defineProperty({}, 'x', { get: function () {} }); return true; } } catch (e) {}