From a942593b029c3fae6aad3c340cb9af21822f1095 Mon Sep 17 00:00:00 2001 From: Thomas Wilburn Date: Fri, 7 Sep 2018 15:42:37 -0500 Subject: [PATCH] Fix linting errors --- map/map-test.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/map/map-test.js b/map/map-test.js index 7030928..22d74b8 100644 --- a/map/map-test.js +++ b/map/map-test.js @@ -1451,10 +1451,13 @@ QUnit.test("do not enumerate anything other than key properties (#369)", functio enumerable: false, value: true }); + var test = {}; - for (var k in descendant) test[k] = descendant[k]; + for (var k in descendant) { + test[k] = descendant[k]; + } if (test.prop) { - return QUnit.ok(test.prop, "Browser doesn't correctly skip shadowed enumerable properties") + return QUnit.ok(test.prop, "Browser doesn't correctly skip shadowed enumerable properties"); } @@ -1466,9 +1469,7 @@ QUnit.test("do not enumerate anything other than key properties (#369)", functio var instance = new Type({aProp: "VALUE", anExpando: "VALUE"}); var props = {}; - for(var prop in instance) { - var descriptor = Object.getOwnPropertyDescriptor(instance, prop); - if (!descriptor) descriptor = Object.getOwnPropertyDescriptor(Type.prototype, prop) || {}; + for (var prop in instance) { props[prop] = true; } QUnit.deepEqual(props,{