mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-23 11:42:36 +08:00
Test for fixed ErrnoException property
This commit is contained in:
1 parent
66a74b699d
commit
05681c698d
1 file changed
+7
@@ -60,6 +60,13 @@ class Networker extends events.EventEmitter {
|
||||
}
|
||||
}
|
||||
|
||||
var errno: number;
|
||||
fs.readFile('testfile', (err, data) => {
|
||||
if (err && err.errno) {
|
||||
errno = err.errno;
|
||||
}
|
||||
});
|
||||
|
||||
url.format(url.parse('http://www.example.com/xyz'));
|
||||
|
||||
// https://google.com/search?q=you're%20a%20lizard%2C%20gary
|
||||
|
||||
Reference in new issue
Block a user