From de235ff2f40c7da121ecc3e1c491bc92e0646c6a Mon Sep 17 00:00:00 2001 From: Holman Gao Date: Thu, 13 Aug 2015 14:23:30 -0700 Subject: [PATCH] Update defineProperty check --- lib/utils/object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {}