Skip to content

Commit fa9e03c

Browse files
sam-githubrvagg
authored andcommitted
src: re-sort the symbol macros
The symbol macros were almost lexically sorted, but some were misplaced. PR-URL: #24382 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 2d885ed commit fa9e03c

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/env.h

+22-22
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ struct PackageConfig {
110110
// for the sake of convenience.
111111
#define PER_ISOLATE_SYMBOL_PROPERTIES(V) \
112112
V(handle_onclose_symbol, "handle_onclose") \
113-
V(owner_symbol, "owner") \
114113
V(oninit_symbol, "oninit") \
114+
V(owner_symbol, "owner") \
115115

116116
// Strings are per-isolate primitives but Environment proxies them
117117
// for the sake of convenience. Strings should be ASCII-only.
@@ -124,15 +124,14 @@ struct PackageConfig {
124124
V(bytes_parsed_string, "bytesParsed") \
125125
V(bytes_read_string, "bytesRead") \
126126
V(bytes_written_string, "bytesWritten") \
127-
V(cached_data_string, "cachedData") \
128127
V(cached_data_produced_string, "cachedDataProduced") \
129128
V(cached_data_rejected_string, "cachedDataRejected") \
129+
V(cached_data_string, "cachedData") \
130130
V(change_string, "change") \
131131
V(channel_string, "channel") \
132132
V(chunks_sent_since_last_write_string, "chunksSentSinceLastWrite") \
133-
V(constants_string, "constants") \
134-
V(oncertcb_string, "oncertcb") \
135133
V(code_string, "code") \
134+
V(constants_string, "constants") \
136135
V(cwd_string, "cwd") \
137136
V(dest_string, "dest") \
138137
V(destroyed_string, "destroyed") \
@@ -149,14 +148,14 @@ struct PackageConfig {
149148
V(dns_txt_string, "TXT") \
150149
V(duration_string, "duration") \
151150
V(emit_warning_string, "emitWarning") \
152-
V(exchange_string, "exchange") \
153151
V(encoding_string, "encoding") \
154152
V(entries_string, "entries") \
155153
V(entry_type_string, "entryType") \
156154
V(env_pairs_string, "envPairs") \
157155
V(env_var_settings_string, "envVarSettings") \
158156
V(errno_string, "errno") \
159157
V(error_string, "error") \
158+
V(exchange_string, "exchange") \
160159
V(exit_code_string, "exitCode") \
161160
V(expire_string, "expire") \
162161
V(exponent_string, "exponent") \
@@ -167,8 +166,8 @@ struct PackageConfig {
167166
V(fatal_exception_string, "_fatalException") \
168167
V(fd_string, "fd") \
169168
V(file_string, "file") \
170-
V(fingerprint_string, "fingerprint") \
171169
V(fingerprint256_string, "fingerprint256") \
170+
V(fingerprint_string, "fingerprint") \
172171
V(flags_string, "flags") \
173172
V(fragment_string, "fragment") \
174173
V(get_data_clone_error_string, "_getDataCloneError") \
@@ -183,8 +182,8 @@ struct PackageConfig {
183182
V(infoaccess_string, "infoAccess") \
184183
V(inherit_string, "inherit") \
185184
V(input_string, "input") \
186-
V(internal_string, "internal") \
187185
V(internal_binding_string, "internalBinding") \
186+
V(internal_string, "internal") \
188187
V(ipv4_string, "IPv4") \
189188
V(ipv6_string, "IPv6") \
190189
V(isclosing_string, "isClosing") \
@@ -195,9 +194,9 @@ struct PackageConfig {
195194
V(mac_string, "mac") \
196195
V(main_string, "main") \
197196
V(max_buffer_string, "maxBuffer") \
198-
V(message_string, "message") \
199-
V(message_port_string, "messagePort") \
200197
V(message_port_constructor_string, "MessagePort") \
198+
V(message_port_string, "messagePort") \
199+
V(message_string, "message") \
201200
V(minttl_string, "minttl") \
202201
V(module_string, "module") \
203202
V(modulus_string, "modulus") \
@@ -206,6 +205,7 @@ struct PackageConfig {
206205
V(nsname_string, "nsname") \
207206
V(ocsp_request_string, "OCSPRequest") \
208207
V(onaltsvc_string, "onaltsvc") \
208+
V(oncertcb_string, "oncertcb") \
209209
V(onchange_string, "onchange") \
210210
V(onclienthello_string, "onclienthello") \
211211
V(oncomplete_string, "oncomplete") \
@@ -215,19 +215,19 @@ struct PackageConfig {
215215
V(onexit_string, "onexit") \
216216
V(onframeerror_string, "onframeerror") \
217217
V(ongetpadding_string, "ongetpadding") \
218+
V(ongoawaydata_string, "ongoawaydata") \
218219
V(onhandshakedone_string, "onhandshakedone") \
219220
V(onhandshakestart_string, "onhandshakestart") \
220221
V(onheaders_string, "onheaders") \
221222
V(onmessage_string, "onmessage") \
222223
V(onnewsession_string, "onnewsession") \
223224
V(onocspresponse_string, "onocspresponse") \
224-
V(ongoawaydata_string, "ongoawaydata") \
225225
V(onorigin_string, "onorigin") \
226+
V(onping_string, "onping") \
226227
V(onpriority_string, "onpriority") \
227228
V(onread_string, "onread") \
228229
V(onreadstart_string, "onreadstart") \
229230
V(onreadstop_string, "onreadstop") \
230-
V(onping_string, "onping") \
231231
V(onsettings_string, "onsettings") \
232232
V(onshutdown_string, "onshutdown") \
233233
V(onsignal_string, "onsignal") \
@@ -237,19 +237,19 @@ struct PackageConfig {
237237
V(onwrite_string, "onwrite") \
238238
V(openssl_error_stack, "opensslErrorStack") \
239239
V(options_string, "options") \
240-
V(output_string, "output") \
241240
V(order_string, "order") \
241+
V(output_string, "output") \
242242
V(parse_error_string, "Parse Error") \
243243
V(password_string, "password") \
244244
V(path_string, "path") \
245245
V(pending_handle_string, "pendingHandle") \
246246
V(pid_string, "pid") \
247+
V(pipe_source_string, "pipeSource") \
247248
V(pipe_string, "pipe") \
248249
V(pipe_target_string, "pipeTarget") \
249-
V(pipe_source_string, "pipeSource") \
250-
V(port_string, "port") \
251250
V(port1_string, "port1") \
252251
V(port2_string, "port2") \
252+
V(port_string, "port") \
253253
V(preference_string, "preference") \
254254
V(priority_string, "priority") \
255255
V(process_string, "process") \
@@ -267,11 +267,11 @@ struct PackageConfig {
267267
V(require_string, "require") \
268268
V(retry_string, "retry") \
269269
V(scheme_string, "scheme") \
270-
V(serial_string, "serial") \
271270
V(scopeid_string, "scopeid") \
272271
V(serial_number_string, "serialNumber") \
273-
V(service_string, "service") \
272+
V(serial_string, "serial") \
274273
V(servername_string, "servername") \
274+
V(service_string, "service") \
275275
V(session_id_string, "sessionId") \
276276
V(shell_string, "shell") \
277277
V(signal_string, "signal") \
@@ -310,7 +310,7 @@ struct PackageConfig {
310310
V(write_host_object_string, "_writeHostObject") \
311311
V(write_queue_size_string, "writeQueueSize") \
312312
V(x_forwarded_string, "x-forwarded-for") \
313-
V(zero_return_string, "ZERO_RETURN")
313+
V(zero_return_string, "ZERO_RETURN") \
314314

315315
#define ENVIRONMENT_STRONG_PERSISTENT_PROPERTIES(V) \
316316
V(as_external, v8::External) \
@@ -320,17 +320,17 @@ struct PackageConfig {
320320
V(async_hooks_destroy_function, v8::Function) \
321321
V(async_hooks_init_function, v8::Function) \
322322
V(async_hooks_promise_resolve_function, v8::Function) \
323-
V(async_wrap_object_ctor_template, v8::FunctionTemplate) \
324323
V(async_wrap_ctor_template, v8::FunctionTemplate) \
324+
V(async_wrap_object_ctor_template, v8::FunctionTemplate) \
325325
V(buffer_prototype_object, v8::Object) \
326326
V(context, v8::Context) \
327327
V(domain_callback, v8::Function) \
328328
V(domexception_function, v8::Function) \
329-
V(fdclose_constructor_template, v8::ObjectTemplate) \
330329
V(fd_constructor_template, v8::ObjectTemplate) \
330+
V(fdclose_constructor_template, v8::ObjectTemplate) \
331331
V(filehandlereadwrap_template, v8::ObjectTemplate) \
332-
V(fsreqpromise_constructor_template, v8::ObjectTemplate) \
333332
V(fs_use_promises_symbol, v8::Symbol) \
333+
V(fsreqpromise_constructor_template, v8::ObjectTemplate) \
334334
V(handle_wrap_ctor_template, v8::FunctionTemplate) \
335335
V(host_import_module_dynamically_callback, v8::Function) \
336336
V(host_initialize_import_meta_object_callback, v8::Function) \
@@ -348,9 +348,9 @@ struct PackageConfig {
348348
V(native_modules_source_hash, v8::Object) \
349349
V(native_modules_with_cache, v8::Set) \
350350
V(native_modules_without_cache, v8::Set) \
351-
V(pipe_constructor_template, v8::FunctionTemplate) \
352351
V(performance_entry_callback, v8::Function) \
353352
V(performance_entry_template, v8::Function) \
353+
V(pipe_constructor_template, v8::FunctionTemplate) \
354354
V(process_object, v8::Object) \
355355
V(promise_handler_function, v8::Function) \
356356
V(promise_wrap_template, v8::ObjectTemplate) \
@@ -367,7 +367,7 @@ struct PackageConfig {
367367
V(tty_constructor_template, v8::FunctionTemplate) \
368368
V(udp_constructor_function, v8::Function) \
369369
V(url_constructor_function, v8::Function) \
370-
V(write_wrap_template, v8::ObjectTemplate)
370+
V(write_wrap_template, v8::ObjectTemplate) \
371371

372372
class Environment;
373373

0 commit comments

Comments
 (0)