Skip to content
Closed
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
squash!
  • Loading branch information
Trott committed Jun 7, 2018
commit 5e4165252f1203b607187586e6a236b1f6749097
5 changes: 1 addition & 4 deletions test/parallel/test-url-parse-invalid-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,5 @@ assert.throws(() => { url.parse('http://%E0%A4%A@fail'); },

// The error should be from the JS engine and not from Node.js.
// JS engine errors do not have the `code` property.
if (e.code !== undefined)
return false;

return true;
return e.code === undefined;
});