Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
fixup! assert: make assert.fail less affected by prototype tampering
  • Loading branch information
aduh95 committed Apr 29, 2022
commit 71cda91437c245f0adad7be0164c44006aac94a1
4 changes: 2 additions & 2 deletions test/parallel/test-assert-fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ assert.throws(() => {
message: 'custom message'
});

Object.prototype.get = common.mustNotCall()
assert.throws(() => assert.fail(''), { code: 'ERR_ASSERTION' })
Object.prototype.get = common.mustNotCall();
assert.throws(() => assert.fail(''), { code: 'ERR_ASSERTION' });
delete Object.prototype.get;