Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaswilburn committed Sep 7, 2018
1 parent 9f63570 commit a942593
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions map/map-test.js
Expand Up @@ -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");
}


Expand All @@ -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,{
Expand Down

0 comments on commit a942593

Please sign in to comment.