Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/parallel/test-accessor-properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UDP = internalBinding('udp_wrap').UDP;
const StreamWrapProto = Object.getPrototypeOf(TTY.prototype);
const properties = ['bytesRead', 'fd', '_externalStream'];

properties.forEach((property) => {
for (const property of properties) {
// Should throw instead of raise assertions
assert.throws(() => {
TTY.prototype[property]; // eslint-disable-line no-unused-expressions
Expand All @@ -35,7 +35,7 @@ const UDP = internalBinding('udp_wrap').UDP;
'object',
'typeof property descriptor ' + property + ' is not \'object\''
);
});
}

if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check
// There are accessor properties in crypto too
Expand Down