From 390c764826ce6cb3bdc7f56a2f4771b2a9091494 Mon Sep 17 00:00:00 2001 From: Dmitry Soshnikov Date: Thu, 18 Jun 2015 23:05:05 -0700 Subject: [PATCH] Don't mock accessors --- src/lib/moduleMocker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/moduleMocker.js b/src/lib/moduleMocker.js index c13bcf3dfc64..82121b9a349d 100644 --- a/src/lib/moduleMocker.js +++ b/src/lib/moduleMocker.js @@ -61,8 +61,8 @@ function getSlots(object) { var collectProp = function(prop) { var propDesc = Object.getOwnPropertyDescriptor(object, prop); if (forbiddenProps.indexOf(prop) === -1 && - // Include only enumerable accessors. - (propDesc.enumerable || !propDesc.get)) { + // Don't include accessors. + !propDesc.get) { slots[prop] = true; } };