We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba7ad37 commit d463f02Copy full SHA for d463f02
test/objectwrap.js
@@ -108,11 +108,15 @@ const test = (binding) => {
108
keys.push(key);
109
}
110
111
- assert(keys.length = 4);
112
- assert(obj.testGetSet);
113
- assert(obj.testGetter);
114
- assert(obj.testValue);
115
- assert(obj.testMethod);
+ assert(keys.length == 6);
+ // on prototype
+ assert(keys.includes("testGetSet"));
+ assert(keys.includes("testGetter"));
+ assert(keys.includes("testValue"));
116
+ assert(keys.includes("testMethod"));
117
+ // on object only
118
+ assert(keys.includes("ownProperty"));
119
+ assert(keys.includes("ownPropertyT"));
120
121
};
122
0 commit comments