Skip to content

Commit d463f02

Browse files
fholzermhdawson
authored andcommitted
src: fix testEnumerables on ObjectWrap
PR-URL: #736 Reviewed-By: Michael Dawson <[email protected]>
1 parent ba7ad37 commit d463f02

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

test/objectwrap.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,15 @@ const test = (binding) => {
108108
keys.push(key);
109109
}
110110

111-
assert(keys.length = 4);
112-
assert(obj.testGetSet);
113-
assert(obj.testGetter);
114-
assert(obj.testValue);
115-
assert(obj.testMethod);
111+
assert(keys.length == 6);
112+
// on prototype
113+
assert(keys.includes("testGetSet"));
114+
assert(keys.includes("testGetter"));
115+
assert(keys.includes("testValue"));
116+
assert(keys.includes("testMethod"));
117+
// on object only
118+
assert(keys.includes("ownProperty"));
119+
assert(keys.includes("ownPropertyT"));
116120
}
117121
};
118122

0 commit comments

Comments
 (0)