mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 04:39:03 +02:00
I looked through the NSPR socket creation functions that InitWithAddress uses to see which errors they could return, and placed appropriate comments in ErrorAccordingToNSPR. The test coverage is not great; in particular, I wasn't able to find a way to elicit "address in use" errors from Windows (although I could from Linux); the web says that Windows is much more relaxed about binding listening sockets than Unix derivatives. I'm interested in suggestions.
9 lines
266 B
JavaScript
9 lines
266 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
function run_test() {
|
|
do_check_throws_nsIException(function () {
|
|
throw Error("I find your relaxed dishabille unpalatable");
|
|
}, "NS_NOINTERFACE");
|
|
}
|
|
|