File tree Expand file tree Collapse file tree 2 files changed +92
-0
lines changed Expand file tree Collapse file tree 2 files changed +92
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import { TypesBinding } from './internalBinding/types';
23
23
import { URLBinding } from './internalBinding/url' ;
24
24
import { URLPatternBinding } from "./internalBinding/url_pattern" ;
25
25
import { UtilBinding } from './internalBinding/util' ;
26
+ import { UVBinding } from './internalBinding/uv' ;
26
27
import { WASIBinding } from './internalBinding/wasi' ;
27
28
import { WorkerBinding } from './internalBinding/worker' ;
28
29
import { ModulesBinding } from './internalBinding/modules' ;
@@ -55,6 +56,7 @@ interface InternalBindingMap {
55
56
url : URLBinding ;
56
57
url_pattern : URLPatternBinding ;
57
58
util : UtilBinding ;
59
+ uv : UVBinding ;
58
60
wasi : WASIBinding ;
59
61
worker : WorkerBinding ;
60
62
zlib : ZlibBinding ;
Original file line number Diff line number Diff line change
1
+ export interface UVBinding {
2
+ errname ( err : number ) : string ;
3
+ getErrorMap ( ) : Record < string , number > ;
4
+ getErrorMessage ( err : number ) : string ;
5
+
6
+ UV_E2BIG : - 7 ;
7
+ UV_EACCES : - 13 ;
8
+ UV_EADDRINUSE : - 48 ;
9
+ UV_EADDRNOTAVAIL : - 49 ;
10
+ UV_EAFNOSUPPORT : - 47 ;
11
+ UV_EAGAIN : - 35 ;
12
+ UV_EAI_ADDRFAMILY : - 3000 ;
13
+ UV_EAI_AGAIN : - 3001 ;
14
+ UV_EAI_BADFLAGS : - 3002 ;
15
+ UV_EAI_BADHINTS : - 3013 ;
16
+ UV_EAI_CANCELED : - 3003 ;
17
+ UV_EAI_FAIL : - 3004 ;
18
+ UV_EAI_FAMILY : - 3005 ;
19
+ UV_EAI_MEMORY : - 3006 ;
20
+ UV_EAI_NODATA : - 3007 ;
21
+ UV_EAI_NONAME : - 3008 ;
22
+ UV_EAI_OVERFLOW : - 3009 ;
23
+ UV_EAI_PROTOCOL : - 3014 ;
24
+ UV_EAI_SERVICE : - 3010 ;
25
+ UV_EAI_SOCKTYPE : - 3011 ;
26
+ UV_EALREADY : - 37 ;
27
+ UV_EBADF : - 9 ;
28
+ UV_EBUSY : - 16 ;
29
+ UV_ECANCELED : - 89 ;
30
+ UV_ECHARSET : - 4080 ;
31
+ UV_ECONNABORTED : - 53 ;
32
+ UV_ECONNREFUSED : - 61 ;
33
+ UV_ECONNRESET : - 54 ;
34
+ UV_EDESTADDRREQ : - 39 ;
35
+ UV_EEXIST : - 17 ;
36
+ UV_EFAULT : - 14 ;
37
+ UV_EFBIG : - 27 ;
38
+ UV_EFTYPE : - 79 ;
39
+ UV_EHOSTDOWN : - 64 ;
40
+ UV_EHOSTUNREACH : - 65 ;
41
+ UV_EILSEQ : - 92 ;
42
+ UV_EINTR : - 4 ;
43
+ UV_EINVAL : - 22 ;
44
+ UV_EIO : - 5 ;
45
+ UV_EISCONN : - 56 ;
46
+ UV_EISDIR : - 21 ;
47
+ UV_ELOOP : - 62 ;
48
+ UV_EMFILE : - 24 ;
49
+ UV_EMLINK : - 31 ;
50
+ UV_EMSGSIZE : - 40 ;
51
+ UV_ENAMETOOLONG : - 63 ;
52
+ UV_ENETDOWN : - 50 ;
53
+ UV_ENETUNREACH : - 51 ;
54
+ UV_ENFILE : - 23 ;
55
+ UV_ENOBUFS : - 55 ;
56
+ UV_ENODATA : - 96 ;
57
+ UV_ENODEV : - 19 ;
58
+ UV_ENOENT : - 2 ;
59
+ UV_ENOMEM : - 12 ;
60
+ UV_ENONET : - 4056 ;
61
+ UV_ENOPROTOOPT : - 42 ;
62
+ UV_ENOSPC : - 28 ;
63
+ UV_ENOSYS : - 78 ;
64
+ UV_ENOTCONN : - 57 ;
65
+ UV_ENOTDIR : - 20 ;
66
+ UV_ENOTEMPTY : - 66 ;
67
+ UV_ENOTSOCK : - 38 ;
68
+ UV_ENOTSUP : - 45 ;
69
+ UV_ENOTTY : - 25 ;
70
+ UV_ENXIO : - 6 ;
71
+ UV_EOF : - 4095 ;
72
+ UV_EOVERFLOW : - 84 ;
73
+ UV_EPERM : - 1 ;
74
+ UV_EPIPE : - 32 ;
75
+ UV_EPROTO : - 100 ;
76
+ UV_EPROTONOSUPPORT : - 43 ;
77
+ UV_EPROTOTYPE : - 41 ;
78
+ UV_ERANGE : - 34 ;
79
+ UV_EREMOTEIO : - 4030 ;
80
+ UV_EROFS : - 30 ;
81
+ UV_ESHUTDOWN : - 58 ;
82
+ UV_ESOCKTNOSUPPORT : - 44 ;
83
+ UV_ESPIPE : - 29 ;
84
+ UV_ESRCH : - 3 ;
85
+ UV_ETIMEDOUT : - 60 ;
86
+ UV_ETXTBSY : - 26 ;
87
+ UV_EUNATCH : - 4023 ;
88
+ UV_EXDEV : - 18 ;
89
+ UV_UNKNOWN : - 4094 ;
90
+ }
You can’t perform that action at this time.
0 commit comments