1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
|
#include "JavaScriptCore/JSGlobalObject.h"
#include "ZigGlobalObject.h"
namespace Zig {
using namespace WebCore;
inline void generateConstantsSourceCode(JSC::JSGlobalObject *lexicalGlobalObject,
JSC::Identifier moduleKey,
Vector<JSC::Identifier, 4> &exportNames,
JSC::MarkedArgumentBuffer &exportValues) {
JSC::VM &vm = lexicalGlobalObject->vm();
GlobalObject *globalObject = reinterpret_cast<GlobalObject *>(lexicalGlobalObject);
auto* defaultObject = JSC::constructEmptyObject(globalObject);
auto exportProperty = [&](JSC::Identifier name, JSC::JSValue value) {
exportNames.append(name);
exportValues.append(value);
defaultObject->putDirect(vm, name, value, PropertyAttribute::DontDelete | PropertyAttribute::ReadOnly | 0);
};
exportProperty(JSC::Identifier::fromString(vm, "RTLD_LAZY"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "RTLD_NOW"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "RTLD_GLOBAL"_s), JSC::jsNumber(256));
exportProperty(JSC::Identifier::fromString(vm, "RTLD_LOCAL"_s), JSC::jsNumber(0));
exportProperty(JSC::Identifier::fromString(vm, "RTLD_DEEPBIND"_s), JSC::jsNumber(8));
exportProperty(JSC::Identifier::fromString(vm, "E2BIG"_s), JSC::jsNumber(7));
exportProperty(JSC::Identifier::fromString(vm, "EACCES"_s), JSC::jsNumber(13));
exportProperty(JSC::Identifier::fromString(vm, "EADDRINUSE"_s), JSC::jsNumber(98));
exportProperty(JSC::Identifier::fromString(vm, "EADDRNOTAVAIL"_s), JSC::jsNumber(99));
exportProperty(JSC::Identifier::fromString(vm, "EAFNOSUPPORT"_s), JSC::jsNumber(97));
exportProperty(JSC::Identifier::fromString(vm, "EAGAIN"_s), JSC::jsNumber(11));
exportProperty(JSC::Identifier::fromString(vm, "EALREADY"_s), JSC::jsNumber(114));
exportProperty(JSC::Identifier::fromString(vm, "EBADF"_s), JSC::jsNumber(9));
exportProperty(JSC::Identifier::fromString(vm, "EBADMSG"_s), JSC::jsNumber(74));
exportProperty(JSC::Identifier::fromString(vm, "EBUSY"_s), JSC::jsNumber(16));
exportProperty(JSC::Identifier::fromString(vm, "ECANCELED"_s), JSC::jsNumber(125));
exportProperty(JSC::Identifier::fromString(vm, "ECHILD"_s), JSC::jsNumber(10));
exportProperty(JSC::Identifier::fromString(vm, "ECONNABORTED"_s), JSC::jsNumber(103));
exportProperty(JSC::Identifier::fromString(vm, "ECONNREFUSED"_s), JSC::jsNumber(111));
exportProperty(JSC::Identifier::fromString(vm, "ECONNRESET"_s), JSC::jsNumber(104));
exportProperty(JSC::Identifier::fromString(vm, "EDEADLK"_s), JSC::jsNumber(35));
exportProperty(JSC::Identifier::fromString(vm, "EDESTADDRREQ"_s), JSC::jsNumber(89));
exportProperty(JSC::Identifier::fromString(vm, "EDOM"_s), JSC::jsNumber(33));
exportProperty(JSC::Identifier::fromString(vm, "EDQUOT"_s), JSC::jsNumber(122));
exportProperty(JSC::Identifier::fromString(vm, "EEXIST"_s), JSC::jsNumber(17));
exportProperty(JSC::Identifier::fromString(vm, "EFAULT"_s), JSC::jsNumber(14));
exportProperty(JSC::Identifier::fromString(vm, "EFBIG"_s), JSC::jsNumber(27));
exportProperty(JSC::Identifier::fromString(vm, "EHOSTUNREACH"_s), JSC::jsNumber(113));
exportProperty(JSC::Identifier::fromString(vm, "EIDRM"_s), JSC::jsNumber(43));
exportProperty(JSC::Identifier::fromString(vm, "EILSEQ"_s), JSC::jsNumber(84));
exportProperty(JSC::Identifier::fromString(vm, "EINPROGRESS"_s), JSC::jsNumber(115));
exportProperty(JSC::Identifier::fromString(vm, "EINTR"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "EINVAL"_s), JSC::jsNumber(22));
exportProperty(JSC::Identifier::fromString(vm, "EIO"_s), JSC::jsNumber(5));
exportProperty(JSC::Identifier::fromString(vm, "EISCONN"_s), JSC::jsNumber(106));
exportProperty(JSC::Identifier::fromString(vm, "EISDIR"_s), JSC::jsNumber(21));
exportProperty(JSC::Identifier::fromString(vm, "ELOOP"_s), JSC::jsNumber(40));
exportProperty(JSC::Identifier::fromString(vm, "EMFILE"_s), JSC::jsNumber(24));
exportProperty(JSC::Identifier::fromString(vm, "EMLINK"_s), JSC::jsNumber(31));
exportProperty(JSC::Identifier::fromString(vm, "EMSGSIZE"_s), JSC::jsNumber(90));
exportProperty(JSC::Identifier::fromString(vm, "EMULTIHOP"_s), JSC::jsNumber(72));
exportProperty(JSC::Identifier::fromString(vm, "ENAMETOOLONG"_s), JSC::jsNumber(36));
exportProperty(JSC::Identifier::fromString(vm, "ENETDOWN"_s), JSC::jsNumber(100));
exportProperty(JSC::Identifier::fromString(vm, "ENETRESET"_s), JSC::jsNumber(102));
exportProperty(JSC::Identifier::fromString(vm, "ENETUNREACH"_s), JSC::jsNumber(101));
exportProperty(JSC::Identifier::fromString(vm, "ENFILE"_s), JSC::jsNumber(23));
exportProperty(JSC::Identifier::fromString(vm, "ENOBUFS"_s), JSC::jsNumber(105));
exportProperty(JSC::Identifier::fromString(vm, "ENODATA"_s), JSC::jsNumber(61));
exportProperty(JSC::Identifier::fromString(vm, "ENODEV"_s), JSC::jsNumber(19));
exportProperty(JSC::Identifier::fromString(vm, "ENOENT"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "ENOEXEC"_s), JSC::jsNumber(8));
exportProperty(JSC::Identifier::fromString(vm, "ENOLCK"_s), JSC::jsNumber(37));
exportProperty(JSC::Identifier::fromString(vm, "ENOLINK"_s), JSC::jsNumber(67));
exportProperty(JSC::Identifier::fromString(vm, "ENOMEM"_s), JSC::jsNumber(12));
exportProperty(JSC::Identifier::fromString(vm, "ENOMSG"_s), JSC::jsNumber(42));
exportProperty(JSC::Identifier::fromString(vm, "ENOPROTOOPT"_s), JSC::jsNumber(92));
exportProperty(JSC::Identifier::fromString(vm, "ENOSPC"_s), JSC::jsNumber(28));
exportProperty(JSC::Identifier::fromString(vm, "ENOSR"_s), JSC::jsNumber(63));
exportProperty(JSC::Identifier::fromString(vm, "ENOSTR"_s), JSC::jsNumber(60));
exportProperty(JSC::Identifier::fromString(vm, "ENOSYS"_s), JSC::jsNumber(38));
exportProperty(JSC::Identifier::fromString(vm, "ENOTCONN"_s), JSC::jsNumber(107));
exportProperty(JSC::Identifier::fromString(vm, "ENOTDIR"_s), JSC::jsNumber(20));
exportProperty(JSC::Identifier::fromString(vm, "ENOTEMPTY"_s), JSC::jsNumber(39));
exportProperty(JSC::Identifier::fromString(vm, "ENOTSOCK"_s), JSC::jsNumber(88));
exportProperty(JSC::Identifier::fromString(vm, "ENOTSUP"_s), JSC::jsNumber(95));
exportProperty(JSC::Identifier::fromString(vm, "ENOTTY"_s), JSC::jsNumber(25));
exportProperty(JSC::Identifier::fromString(vm, "ENXIO"_s), JSC::jsNumber(6));
exportProperty(JSC::Identifier::fromString(vm, "EOPNOTSUPP"_s), JSC::jsNumber(95));
exportProperty(JSC::Identifier::fromString(vm, "EOVERFLOW"_s), JSC::jsNumber(75));
exportProperty(JSC::Identifier::fromString(vm, "EPERM"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "EPIPE"_s), JSC::jsNumber(32));
exportProperty(JSC::Identifier::fromString(vm, "EPROTO"_s), JSC::jsNumber(71));
exportProperty(JSC::Identifier::fromString(vm, "EPROTONOSUPPORT"_s), JSC::jsNumber(93));
exportProperty(JSC::Identifier::fromString(vm, "EPROTOTYPE"_s), JSC::jsNumber(91));
exportProperty(JSC::Identifier::fromString(vm, "ERANGE"_s), JSC::jsNumber(34));
exportProperty(JSC::Identifier::fromString(vm, "EROFS"_s), JSC::jsNumber(30));
exportProperty(JSC::Identifier::fromString(vm, "ESPIPE"_s), JSC::jsNumber(29));
exportProperty(JSC::Identifier::fromString(vm, "ESRCH"_s), JSC::jsNumber(3));
exportProperty(JSC::Identifier::fromString(vm, "ESTALE"_s), JSC::jsNumber(116));
exportProperty(JSC::Identifier::fromString(vm, "ETIME"_s), JSC::jsNumber(62));
exportProperty(JSC::Identifier::fromString(vm, "ETIMEDOUT"_s), JSC::jsNumber(110));
exportProperty(JSC::Identifier::fromString(vm, "ETXTBSY"_s), JSC::jsNumber(26));
exportProperty(JSC::Identifier::fromString(vm, "EWOULDBLOCK"_s), JSC::jsNumber(11));
exportProperty(JSC::Identifier::fromString(vm, "EXDEV"_s), JSC::jsNumber(18));
exportProperty(JSC::Identifier::fromString(vm, "PRIORITY_LOW"_s), JSC::jsNumber(19));
exportProperty(JSC::Identifier::fromString(vm, "PRIORITY_BELOW_NORMAL"_s), JSC::jsNumber(10));
exportProperty(JSC::Identifier::fromString(vm, "PRIORITY_NORMAL"_s), JSC::jsNumber(0));
exportProperty(JSC::Identifier::fromString(vm, "PRIORITY_ABOVE_NORMAL"_s), JSC::jsNumber(-7));
exportProperty(JSC::Identifier::fromString(vm, "PRIORITY_HIGH"_s), JSC::jsNumber(-14));
exportProperty(JSC::Identifier::fromString(vm, "PRIORITY_HIGHEST"_s), JSC::jsNumber(-20));
exportProperty(JSC::Identifier::fromString(vm, "SIGHUP"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "SIGINT"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "SIGQUIT"_s), JSC::jsNumber(3));
exportProperty(JSC::Identifier::fromString(vm, "SIGILL"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "SIGTRAP"_s), JSC::jsNumber(5));
exportProperty(JSC::Identifier::fromString(vm, "SIGABRT"_s), JSC::jsNumber(6));
exportProperty(JSC::Identifier::fromString(vm, "SIGIOT"_s), JSC::jsNumber(6));
exportProperty(JSC::Identifier::fromString(vm, "SIGBUS"_s), JSC::jsNumber(7));
exportProperty(JSC::Identifier::fromString(vm, "SIGFPE"_s), JSC::jsNumber(8));
exportProperty(JSC::Identifier::fromString(vm, "SIGKILL"_s), JSC::jsNumber(9));
exportProperty(JSC::Identifier::fromString(vm, "SIGUSR1"_s), JSC::jsNumber(10));
exportProperty(JSC::Identifier::fromString(vm, "SIGSEGV"_s), JSC::jsNumber(11));
exportProperty(JSC::Identifier::fromString(vm, "SIGUSR2"_s), JSC::jsNumber(12));
exportProperty(JSC::Identifier::fromString(vm, "SIGPIPE"_s), JSC::jsNumber(13));
exportProperty(JSC::Identifier::fromString(vm, "SIGALRM"_s), JSC::jsNumber(14));
exportProperty(JSC::Identifier::fromString(vm, "SIGTERM"_s), JSC::jsNumber(15));
exportProperty(JSC::Identifier::fromString(vm, "SIGCHLD"_s), JSC::jsNumber(17));
exportProperty(JSC::Identifier::fromString(vm, "SIGSTKFLT"_s), JSC::jsNumber(16));
exportProperty(JSC::Identifier::fromString(vm, "SIGCONT"_s), JSC::jsNumber(18));
exportProperty(JSC::Identifier::fromString(vm, "SIGSTOP"_s), JSC::jsNumber(19));
exportProperty(JSC::Identifier::fromString(vm, "SIGTSTP"_s), JSC::jsNumber(20));
exportProperty(JSC::Identifier::fromString(vm, "SIGTTIN"_s), JSC::jsNumber(21));
exportProperty(JSC::Identifier::fromString(vm, "SIGTTOU"_s), JSC::jsNumber(22));
exportProperty(JSC::Identifier::fromString(vm, "SIGURG"_s), JSC::jsNumber(23));
exportProperty(JSC::Identifier::fromString(vm, "SIGXCPU"_s), JSC::jsNumber(24));
exportProperty(JSC::Identifier::fromString(vm, "SIGXFSZ"_s), JSC::jsNumber(25));
exportProperty(JSC::Identifier::fromString(vm, "SIGVTALRM"_s), JSC::jsNumber(26));
exportProperty(JSC::Identifier::fromString(vm, "SIGPROF"_s), JSC::jsNumber(27));
exportProperty(JSC::Identifier::fromString(vm, "SIGWINCH"_s), JSC::jsNumber(28));
exportProperty(JSC::Identifier::fromString(vm, "SIGIO"_s), JSC::jsNumber(29));
exportProperty(JSC::Identifier::fromString(vm, "SIGPOLL"_s), JSC::jsNumber(29));
exportProperty(JSC::Identifier::fromString(vm, "SIGPWR"_s), JSC::jsNumber(30));
exportProperty(JSC::Identifier::fromString(vm, "SIGSYS"_s), JSC::jsNumber(31));
exportProperty(JSC::Identifier::fromString(vm, "UV_FS_SYMLINK_DIR"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "UV_FS_SYMLINK_JUNCTION"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "O_RDONLY"_s), JSC::jsNumber(0));
exportProperty(JSC::Identifier::fromString(vm, "O_WRONLY"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "O_RDWR"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "UV_DIRENT_UNKNOWN"_s), JSC::jsNumber(0));
exportProperty(JSC::Identifier::fromString(vm, "UV_DIRENT_FILE"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "UV_DIRENT_DIR"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "UV_DIRENT_LINK"_s), JSC::jsNumber(3));
exportProperty(JSC::Identifier::fromString(vm, "UV_DIRENT_FIFO"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "UV_DIRENT_SOCKET"_s), JSC::jsNumber(5));
exportProperty(JSC::Identifier::fromString(vm, "UV_DIRENT_CHAR"_s), JSC::jsNumber(6));
exportProperty(JSC::Identifier::fromString(vm, "UV_DIRENT_BLOCK"_s), JSC::jsNumber(7));
exportProperty(JSC::Identifier::fromString(vm, "S_IFMT"_s), JSC::jsNumber(61440));
exportProperty(JSC::Identifier::fromString(vm, "S_IFREG"_s), JSC::jsNumber(32768));
exportProperty(JSC::Identifier::fromString(vm, "S_IFDIR"_s), JSC::jsNumber(16384));
exportProperty(JSC::Identifier::fromString(vm, "S_IFCHR"_s), JSC::jsNumber(8192));
exportProperty(JSC::Identifier::fromString(vm, "S_IFBLK"_s), JSC::jsNumber(24576));
exportProperty(JSC::Identifier::fromString(vm, "S_IFIFO"_s), JSC::jsNumber(4096));
exportProperty(JSC::Identifier::fromString(vm, "S_IFLNK"_s), JSC::jsNumber(40960));
exportProperty(JSC::Identifier::fromString(vm, "S_IFSOCK"_s), JSC::jsNumber(49152));
exportProperty(JSC::Identifier::fromString(vm, "O_CREAT"_s), JSC::jsNumber(64));
exportProperty(JSC::Identifier::fromString(vm, "O_EXCL"_s), JSC::jsNumber(128));
exportProperty(JSC::Identifier::fromString(vm, "UV_FS_O_FILEMAP"_s), JSC::jsNumber(0));
exportProperty(JSC::Identifier::fromString(vm, "O_NOCTTY"_s), JSC::jsNumber(256));
exportProperty(JSC::Identifier::fromString(vm, "O_TRUNC"_s), JSC::jsNumber(512));
exportProperty(JSC::Identifier::fromString(vm, "O_APPEND"_s), JSC::jsNumber(1024));
exportProperty(JSC::Identifier::fromString(vm, "O_DIRECTORY"_s), JSC::jsNumber(65536));
exportProperty(JSC::Identifier::fromString(vm, "O_NOATIME"_s), JSC::jsNumber(262144));
exportProperty(JSC::Identifier::fromString(vm, "O_NOFOLLOW"_s), JSC::jsNumber(131072));
exportProperty(JSC::Identifier::fromString(vm, "O_SYNC"_s), JSC::jsNumber(1052672));
exportProperty(JSC::Identifier::fromString(vm, "O_DSYNC"_s), JSC::jsNumber(4096));
exportProperty(JSC::Identifier::fromString(vm, "O_DIRECT"_s), JSC::jsNumber(16384));
exportProperty(JSC::Identifier::fromString(vm, "O_NONBLOCK"_s), JSC::jsNumber(2048));
exportProperty(JSC::Identifier::fromString(vm, "S_IRWXU"_s), JSC::jsNumber(448));
exportProperty(JSC::Identifier::fromString(vm, "S_IRUSR"_s), JSC::jsNumber(256));
exportProperty(JSC::Identifier::fromString(vm, "S_IWUSR"_s), JSC::jsNumber(128));
exportProperty(JSC::Identifier::fromString(vm, "S_IXUSR"_s), JSC::jsNumber(64));
exportProperty(JSC::Identifier::fromString(vm, "S_IRWXG"_s), JSC::jsNumber(56));
exportProperty(JSC::Identifier::fromString(vm, "S_IRGRP"_s), JSC::jsNumber(32));
exportProperty(JSC::Identifier::fromString(vm, "S_IWGRP"_s), JSC::jsNumber(16));
exportProperty(JSC::Identifier::fromString(vm, "S_IXGRP"_s), JSC::jsNumber(8));
exportProperty(JSC::Identifier::fromString(vm, "S_IRWXO"_s), JSC::jsNumber(7));
exportProperty(JSC::Identifier::fromString(vm, "S_IROTH"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "S_IWOTH"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "S_IXOTH"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "F_OK"_s), JSC::jsNumber(0));
exportProperty(JSC::Identifier::fromString(vm, "R_OK"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "W_OK"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "X_OK"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "UV_FS_COPYFILE_EXCL"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "COPYFILE_EXCL"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "UV_FS_COPYFILE_FICLONE"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "COPYFILE_FICLONE"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "UV_FS_COPYFILE_FICLONE_FORCE"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "COPYFILE_FICLONE_FORCE"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "OPENSSL_VERSION_NUMBER"_s), JSC::jsNumber(805306496));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_ALL"_s), JSC::jsNumber(2147485776));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_ALLOW_NO_DHE_KEX"_s), JSC::jsNumber(1024));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION"_s), JSC::jsNumber(262144));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_CIPHER_SERVER_PREFERENCE"_s), JSC::jsNumber(4194304));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_CISCO_ANYCONNECT"_s), JSC::jsNumber(32768));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_COOKIE_EXCHANGE"_s), JSC::jsNumber(8192));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_CRYPTOPRO_TLSEXT_BUG"_s), JSC::jsNumber(2147483648));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS"_s), JSC::jsNumber(2048));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_LEGACY_SERVER_CONNECT"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_COMPRESSION"_s), JSC::jsNumber(131072));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_ENCRYPT_THEN_MAC"_s), JSC::jsNumber(524288));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_QUERY_MTU"_s), JSC::jsNumber(4096));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_RENEGOTIATION"_s), JSC::jsNumber(1073741824));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION"_s), JSC::jsNumber(65536));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_SSLv2"_s), JSC::jsNumber(0));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_SSLv3"_s), JSC::jsNumber(33554432));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_TICKET"_s), JSC::jsNumber(16384));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_TLSv1"_s), JSC::jsNumber(67108864));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_TLSv1_1"_s), JSC::jsNumber(268435456));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_TLSv1_2"_s), JSC::jsNumber(134217728));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_NO_TLSv1_3"_s), JSC::jsNumber(536870912));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_PRIORITIZE_CHACHA"_s), JSC::jsNumber(2097152));
exportProperty(JSC::Identifier::fromString(vm, "SSL_OP_TLS_ROLLBACK_BUG"_s), JSC::jsNumber(8388608));
exportProperty(JSC::Identifier::fromString(vm, "ENGINE_METHOD_RSA"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "ENGINE_METHOD_DSA"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "ENGINE_METHOD_DH"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "ENGINE_METHOD_RAND"_s), JSC::jsNumber(8));
exportProperty(JSC::Identifier::fromString(vm, "ENGINE_METHOD_EC"_s), JSC::jsNumber(2048));
exportProperty(JSC::Identifier::fromString(vm, "ENGINE_METHOD_CIPHERS"_s), JSC::jsNumber(64));
exportProperty(JSC::Identifier::fromString(vm, "ENGINE_METHOD_DIGESTS"_s), JSC::jsNumber(128));
exportProperty(JSC::Identifier::fromString(vm, "ENGINE_METHOD_PKEY_METHS"_s), JSC::jsNumber(512));
exportProperty(JSC::Identifier::fromString(vm, "ENGINE_METHOD_PKEY_ASN1_METHS"_s), JSC::jsNumber(1024));
exportProperty(JSC::Identifier::fromString(vm, "ENGINE_METHOD_ALL"_s), JSC::jsNumber(65535));
exportProperty(JSC::Identifier::fromString(vm, "ENGINE_METHOD_NONE"_s), JSC::jsNumber(0));
exportProperty(JSC::Identifier::fromString(vm, "DH_CHECK_P_NOT_SAFE_PRIME"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "DH_CHECK_P_NOT_PRIME"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "DH_UNABLE_TO_CHECK_GENERATOR"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "DH_NOT_SUITABLE_GENERATOR"_s), JSC::jsNumber(8));
exportProperty(JSC::Identifier::fromString(vm, "RSA_PKCS1_PADDING"_s), JSC::jsNumber(1));
exportProperty(JSC::Identifier::fromString(vm, "RSA_NO_PADDING"_s), JSC::jsNumber(3));
exportProperty(JSC::Identifier::fromString(vm, "RSA_PKCS1_OAEP_PADDING"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "RSA_X931_PADDING"_s), JSC::jsNumber(5));
exportProperty(JSC::Identifier::fromString(vm, "RSA_PKCS1_PSS_PADDING"_s), JSC::jsNumber(6));
exportProperty(JSC::Identifier::fromString(vm, "RSA_PSS_SALTLEN_DIGEST"_s), JSC::jsNumber(-1));
exportProperty(JSC::Identifier::fromString(vm, "RSA_PSS_SALTLEN_MAX_SIGN"_s), JSC::jsNumber(-2));
exportProperty(JSC::Identifier::fromString(vm, "RSA_PSS_SALTLEN_AUTO"_s), JSC::jsNumber(-2));
exportProperty(JSC::Identifier::fromString(vm, "defaultCoreCipherList"_s), JSC::jsString(vm, WTF::String::fromUTF8("DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256")));
exportProperty(JSC::Identifier::fromString(vm, "TLS1_VERSION"_s), JSC::jsNumber(769));
exportProperty(JSC::Identifier::fromString(vm, "TLS1_1_VERSION"_s), JSC::jsNumber(770));
exportProperty(JSC::Identifier::fromString(vm, "TLS1_2_VERSION"_s), JSC::jsNumber(771));
exportProperty(JSC::Identifier::fromString(vm, "TLS1_3_VERSION"_s), JSC::jsNumber(772));
exportProperty(JSC::Identifier::fromString(vm, "POINT_CONVERSION_COMPRESSED"_s), JSC::jsNumber(2));
exportProperty(JSC::Identifier::fromString(vm, "POINT_CONVERSION_UNCOMPRESSED"_s), JSC::jsNumber(4));
exportProperty(JSC::Identifier::fromString(vm, "POINT_CONVERSION_HYBRID"_s), JSC::jsNumber(6));
exportNames.append(vm.propertyNames->defaultKeyword);
exportValues.append(defaultObject);
}
} // namespace Zig
|