Skip to content

Commit 5f9b624

Browse files
sam-githubrefack
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 1e23e3c commit 5f9b624

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
@@ -115,8 +115,8 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
115115
// for the sake of convenience.
116116
#define PER_ISOLATE_SYMBOL_PROPERTIES(V) \
117117
V(handle_onclose_symbol, "handle_onclose") \
118-
V(owner_symbol, "owner") \
119118
V(oninit_symbol, "oninit") \
119+
V(owner_symbol, "owner") \
120120

121121
// Strings are per-isolate primitives but Environment proxies them
122122
// for the sake of convenience. Strings should be ASCII-only.
@@ -129,15 +129,14 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
129129
V(bytes_parsed_string, "bytesParsed") \
130130
V(bytes_read_string, "bytesRead") \
131131
V(bytes_written_string, "bytesWritten") \
132-
V(cached_data_string, "cachedData") \
133132
V(cached_data_produced_string, "cachedDataProduced") \
134133
V(cached_data_rejected_string, "cachedDataRejected") \
134+
V(cached_data_string, "cachedData") \
135135
V(change_string, "change") \
136136
V(channel_string, "channel") \
137137
V(chunks_sent_since_last_write_string, "chunksSentSinceLastWrite") \
138-
V(constants_string, "constants") \
139-
V(oncertcb_string, "oncertcb") \
140138
V(code_string, "code") \
139+
V(constants_string, "constants") \
141140
V(cwd_string, "cwd") \
142141
V(dest_string, "dest") \
143142
V(destroyed_string, "destroyed") \
@@ -154,14 +153,14 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
154153
V(dns_txt_string, "TXT") \
155154
V(duration_string, "duration") \
156155
V(emit_warning_string, "emitWarning") \
157-
V(exchange_string, "exchange") \
158156
V(encoding_string, "encoding") \
159157
V(entries_string, "entries") \
160158
V(entry_type_string, "entryType") \
161159
V(env_pairs_string, "envPairs") \
162160
V(env_var_settings_string, "envVarSettings") \
163161
V(errno_string, "errno") \
164162
V(error_string, "error") \
163+
V(exchange_string, "exchange") \
165164
V(exit_code_string, "exitCode") \
166165
V(expire_string, "expire") \
167166
V(exponent_string, "exponent") \
@@ -172,8 +171,8 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
172171
V(fatal_exception_string, "_fatalException") \
173172
V(fd_string, "fd") \
174173
V(file_string, "file") \
175-
V(fingerprint_string, "fingerprint") \
176174
V(fingerprint256_string, "fingerprint256") \
175+
V(fingerprint_string, "fingerprint") \
177176
V(flags_string, "flags") \
178177
V(fragment_string, "fragment") \
179178
V(get_data_clone_error_string, "_getDataCloneError") \
@@ -188,8 +187,8 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
188187
V(infoaccess_string, "infoAccess") \
189188
V(inherit_string, "inherit") \
190189
V(input_string, "input") \
191-
V(internal_string, "internal") \
192190
V(internal_binding_string, "internalBinding") \
191+
V(internal_string, "internal") \
193192
V(ipv4_string, "IPv4") \
194193
V(ipv6_string, "IPv6") \
195194
V(isclosing_string, "isClosing") \
@@ -200,9 +199,9 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
200199
V(mac_string, "mac") \
201200
V(main_string, "main") \
202201
V(max_buffer_string, "maxBuffer") \
203-
V(message_string, "message") \
204-
V(message_port_string, "messagePort") \
205202
V(message_port_constructor_string, "MessagePort") \
203+
V(message_port_string, "messagePort") \
204+
V(message_string, "message") \
206205
V(minttl_string, "minttl") \
207206
V(module_string, "module") \
208207
V(modulus_string, "modulus") \
@@ -211,6 +210,7 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
211210
V(nsname_string, "nsname") \
212211
V(ocsp_request_string, "OCSPRequest") \
213212
V(onaltsvc_string, "onaltsvc") \
213+
V(oncertcb_string, "oncertcb") \
214214
V(onchange_string, "onchange") \
215215
V(onclienthello_string, "onclienthello") \
216216
V(oncomplete_string, "oncomplete") \
@@ -220,19 +220,19 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
220220
V(onexit_string, "onexit") \
221221
V(onframeerror_string, "onframeerror") \
222222
V(ongetpadding_string, "ongetpadding") \
223+
V(ongoawaydata_string, "ongoawaydata") \
223224
V(onhandshakedone_string, "onhandshakedone") \
224225
V(onhandshakestart_string, "onhandshakestart") \
225226
V(onheaders_string, "onheaders") \
226227
V(onmessage_string, "onmessage") \
227228
V(onnewsession_string, "onnewsession") \
228229
V(onocspresponse_string, "onocspresponse") \
229-
V(ongoawaydata_string, "ongoawaydata") \
230230
V(onorigin_string, "onorigin") \
231+
V(onping_string, "onping") \
231232
V(onpriority_string, "onpriority") \
232233
V(onread_string, "onread") \
233234
V(onreadstart_string, "onreadstart") \
234235
V(onreadstop_string, "onreadstop") \
235-
V(onping_string, "onping") \
236236
V(onsettings_string, "onsettings") \
237237
V(onshutdown_string, "onshutdown") \
238238
V(onsignal_string, "onsignal") \
@@ -242,19 +242,19 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
242242
V(onwrite_string, "onwrite") \
243243
V(openssl_error_stack, "opensslErrorStack") \
244244
V(options_string, "options") \
245-
V(output_string, "output") \
246245
V(order_string, "order") \
246+
V(output_string, "output") \
247247
V(parse_error_string, "Parse Error") \
248248
V(password_string, "password") \
249249
V(path_string, "path") \
250250
V(pending_handle_string, "pendingHandle") \
251251
V(pid_string, "pid") \
252+
V(pipe_source_string, "pipeSource") \
252253
V(pipe_string, "pipe") \
253254
V(pipe_target_string, "pipeTarget") \
254-
V(pipe_source_string, "pipeSource") \
255-
V(port_string, "port") \
256255
V(port1_string, "port1") \
257256
V(port2_string, "port2") \
257+
V(port_string, "port") \
258258
V(preference_string, "preference") \
259259
V(priority_string, "priority") \
260260
V(process_string, "process") \
@@ -272,11 +272,11 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
272272
V(require_string, "require") \
273273
V(retry_string, "retry") \
274274
V(scheme_string, "scheme") \
275-
V(serial_string, "serial") \
276275
V(scopeid_string, "scopeid") \
277276
V(serial_number_string, "serialNumber") \
278-
V(service_string, "service") \
277+
V(serial_string, "serial") \
279278
V(servername_string, "servername") \
279+
V(service_string, "service") \
280280
V(session_id_string, "sessionId") \
281281
V(shell_string, "shell") \
282282
V(signal_string, "signal") \
@@ -315,7 +315,7 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
315315
V(write_host_object_string, "_writeHostObject") \
316316
V(write_queue_size_string, "writeQueueSize") \
317317
V(x_forwarded_string, "x-forwarded-for") \
318-
V(zero_return_string, "ZERO_RETURN")
318+
V(zero_return_string, "ZERO_RETURN") \
319319

320320
#define ENVIRONMENT_STRONG_PERSISTENT_PROPERTIES(V) \
321321
V(as_external, v8::External) \
@@ -325,17 +325,17 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
325325
V(async_hooks_destroy_function, v8::Function) \
326326
V(async_hooks_init_function, v8::Function) \
327327
V(async_hooks_promise_resolve_function, v8::Function) \
328-
V(async_wrap_object_ctor_template, v8::FunctionTemplate) \
329328
V(async_wrap_ctor_template, v8::FunctionTemplate) \
329+
V(async_wrap_object_ctor_template, v8::FunctionTemplate) \
330330
V(buffer_prototype_object, v8::Object) \
331331
V(context, v8::Context) \
332332
V(domain_callback, v8::Function) \
333333
V(domexception_function, v8::Function) \
334-
V(fdclose_constructor_template, v8::ObjectTemplate) \
335334
V(fd_constructor_template, v8::ObjectTemplate) \
335+
V(fdclose_constructor_template, v8::ObjectTemplate) \
336336
V(filehandlereadwrap_template, v8::ObjectTemplate) \
337-
V(fsreqpromise_constructor_template, v8::ObjectTemplate) \
338337
V(fs_use_promises_symbol, v8::Symbol) \
338+
V(fsreqpromise_constructor_template, v8::ObjectTemplate) \
339339
V(handle_wrap_ctor_template, v8::FunctionTemplate) \
340340
V(host_import_module_dynamically_callback, v8::Function) \
341341
V(host_initialize_import_meta_object_callback, v8::Function) \
@@ -353,9 +353,9 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
353353
V(native_modules_source_hash, v8::Object) \
354354
V(native_modules_with_cache, v8::Set) \
355355
V(native_modules_without_cache, v8::Set) \
356-
V(pipe_constructor_template, v8::FunctionTemplate) \
357356
V(performance_entry_callback, v8::Function) \
358357
V(performance_entry_template, v8::Function) \
358+
V(pipe_constructor_template, v8::FunctionTemplate) \
359359
V(process_object, v8::Object) \
360360
V(promise_handler_function, v8::Function) \
361361
V(promise_wrap_template, v8::ObjectTemplate) \
@@ -372,7 +372,7 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
372372
V(tty_constructor_template, v8::FunctionTemplate) \
373373
V(udp_constructor_function, v8::Function) \
374374
V(url_constructor_function, v8::Function) \
375-
V(write_wrap_template, v8::ObjectTemplate)
375+
V(write_wrap_template, v8::ObjectTemplate) \
376376

377377
class Environment;
378378

0 commit comments

Comments
 (0)