Skip to content

Commit 26f7edb

Browse files
sam-githubBethGriggs
authored andcommitted
src: re-sort the symbol macros
The symbol macros were almost lexically sorted, but some were misplaced. Backport-PR-URL: #25500 PR-URL: #24382 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 134d1e9 commit 26f7edb

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
@@ -116,8 +116,8 @@ struct PackageConfig {
116116
// for the sake of convenience.
117117
#define PER_ISOLATE_SYMBOL_PROPERTIES(V) \
118118
V(handle_onclose_symbol, "handle_onclose") \
119-
V(owner_symbol, "owner") \
120119
V(oninit_symbol, "oninit") \
120+
V(owner_symbol, "owner") \
121121

122122
// Strings are per-isolate primitives but Environment proxies them
123123
// for the sake of convenience. Strings should be ASCII-only.
@@ -128,19 +128,18 @@ struct PackageConfig {
128128
V(async, "async") \
129129
V(async_ids_stack_string, "async_ids_stack") \
130130
V(buffer_string, "buffer") \
131-
V(bytes_string, "bytes") \
132131
V(bytes_parsed_string, "bytesParsed") \
133132
V(bytes_read_string, "bytesRead") \
133+
V(bytes_string, "bytes") \
134134
V(bytes_written_string, "bytesWritten") \
135-
V(cached_data_string, "cachedData") \
136135
V(cached_data_produced_string, "cachedDataProduced") \
137136
V(cached_data_rejected_string, "cachedDataRejected") \
137+
V(cached_data_string, "cachedData") \
138138
V(change_string, "change") \
139139
V(channel_string, "channel") \
140140
V(chunks_sent_since_last_write_string, "chunksSentSinceLastWrite") \
141-
V(constants_string, "constants") \
142-
V(oncertcb_string, "oncertcb") \
143141
V(code_string, "code") \
142+
V(constants_string, "constants") \
144143
V(cwd_string, "cwd") \
145144
V(dest_string, "dest") \
146145
V(destroyed_string, "destroyed") \
@@ -157,14 +156,14 @@ struct PackageConfig {
157156
V(dns_txt_string, "TXT") \
158157
V(duration_string, "duration") \
159158
V(emit_warning_string, "emitWarning") \
160-
V(exchange_string, "exchange") \
161159
V(encoding_string, "encoding") \
162160
V(entries_string, "entries") \
163161
V(entry_type_string, "entryType") \
164162
V(env_pairs_string, "envPairs") \
165163
V(env_var_settings_string, "envVarSettings") \
166164
V(errno_string, "errno") \
167165
V(error_string, "error") \
166+
V(exchange_string, "exchange") \
168167
V(exit_code_string, "exitCode") \
169168
V(expire_string, "expire") \
170169
V(exponent_string, "exponent") \
@@ -175,8 +174,8 @@ struct PackageConfig {
175174
V(fatal_exception_string, "_fatalException") \
176175
V(fd_string, "fd") \
177176
V(file_string, "file") \
178-
V(fingerprint_string, "fingerprint") \
179177
V(fingerprint256_string, "fingerprint256") \
178+
V(fingerprint_string, "fingerprint") \
180179
V(flags_string, "flags") \
181180
V(fragment_string, "fragment") \
182181
V(get_data_clone_error_string, "_getDataCloneError") \
@@ -202,16 +201,17 @@ struct PackageConfig {
202201
V(mac_string, "mac") \
203202
V(main_string, "main") \
204203
V(max_buffer_string, "maxBuffer") \
205-
V(message_string, "message") \
206-
V(message_port_string, "messagePort") \
207204
V(message_port_constructor_string, "MessagePort") \
205+
V(message_port_string, "messagePort") \
206+
V(message_string, "message") \
208207
V(minttl_string, "minttl") \
209208
V(modulus_string, "modulus") \
210209
V(name_string, "name") \
211210
V(netmask_string, "netmask") \
212211
V(nsname_string, "nsname") \
213212
V(ocsp_request_string, "OCSPRequest") \
214213
V(onaltsvc_string, "onaltsvc") \
214+
V(oncertcb_string, "oncertcb") \
215215
V(onchange_string, "onchange") \
216216
V(onclienthello_string, "onclienthello") \
217217
V(oncomplete_string, "oncomplete") \
@@ -221,19 +221,19 @@ struct PackageConfig {
221221
V(onexit_string, "onexit") \
222222
V(onframeerror_string, "onframeerror") \
223223
V(ongetpadding_string, "ongetpadding") \
224+
V(ongoawaydata_string, "ongoawaydata") \
224225
V(onhandshakedone_string, "onhandshakedone") \
225226
V(onhandshakestart_string, "onhandshakestart") \
226227
V(onheaders_string, "onheaders") \
227228
V(onmessage_string, "onmessage") \
228229
V(onnewsession_string, "onnewsession") \
229230
V(onocspresponse_string, "onocspresponse") \
230-
V(ongoawaydata_string, "ongoawaydata") \
231231
V(onorigin_string, "onorigin") \
232+
V(onping_string, "onping") \
232233
V(onpriority_string, "onpriority") \
233234
V(onread_string, "onread") \
234235
V(onreadstart_string, "onreadstart") \
235236
V(onreadstop_string, "onreadstop") \
236-
V(onping_string, "onping") \
237237
V(onsettings_string, "onsettings") \
238238
V(onshutdown_string, "onshutdown") \
239239
V(onsignal_string, "onsignal") \
@@ -243,19 +243,19 @@ struct PackageConfig {
243243
V(onwrite_string, "onwrite") \
244244
V(openssl_error_stack, "opensslErrorStack") \
245245
V(options_string, "options") \
246-
V(output_string, "output") \
247246
V(order_string, "order") \
247+
V(output_string, "output") \
248248
V(parse_error_string, "Parse Error") \
249249
V(password_string, "password") \
250250
V(path_string, "path") \
251251
V(pending_handle_string, "pendingHandle") \
252252
V(pid_string, "pid") \
253+
V(pipe_source_string, "pipeSource") \
253254
V(pipe_string, "pipe") \
254255
V(pipe_target_string, "pipeTarget") \
255-
V(pipe_source_string, "pipeSource") \
256-
V(port_string, "port") \
257256
V(port1_string, "port1") \
258257
V(port2_string, "port2") \
258+
V(port_string, "port") \
259259
V(preference_string, "preference") \
260260
V(priority_string, "priority") \
261261
V(promise_string, "promise") \
@@ -270,11 +270,11 @@ struct PackageConfig {
270270
V(replacement_string, "replacement") \
271271
V(retry_string, "retry") \
272272
V(scheme_string, "scheme") \
273-
V(serial_string, "serial") \
274273
V(scopeid_string, "scopeid") \
275274
V(serial_number_string, "serialNumber") \
276-
V(service_string, "service") \
275+
V(serial_string, "serial") \
277276
V(servername_string, "servername") \
277+
V(service_string, "service") \
278278
V(session_id_string, "sessionId") \
279279
V(shell_string, "shell") \
280280
V(signal_string, "signal") \
@@ -313,7 +313,7 @@ struct PackageConfig {
313313
V(write_host_object_string, "_writeHostObject") \
314314
V(write_queue_size_string, "writeQueueSize") \
315315
V(x_forwarded_string, "x-forwarded-for") \
316-
V(zero_return_string, "ZERO_RETURN")
316+
V(zero_return_string, "ZERO_RETURN") \
317317

318318
#define ENVIRONMENT_STRONG_PERSISTENT_PROPERTIES(V) \
319319
V(as_external, v8::External) \
@@ -323,17 +323,17 @@ struct PackageConfig {
323323
V(async_hooks_destroy_function, v8::Function) \
324324
V(async_hooks_init_function, v8::Function) \
325325
V(async_hooks_promise_resolve_function, v8::Function) \
326-
V(async_wrap_object_ctor_template, v8::FunctionTemplate) \
327326
V(async_wrap_ctor_template, v8::FunctionTemplate) \
327+
V(async_wrap_object_ctor_template, v8::FunctionTemplate) \
328328
V(buffer_prototype_object, v8::Object) \
329329
V(context, v8::Context) \
330330
V(domain_callback, v8::Function) \
331331
V(domexception_function, v8::Function) \
332-
V(fdclose_constructor_template, v8::ObjectTemplate) \
333332
V(fd_constructor_template, v8::ObjectTemplate) \
333+
V(fdclose_constructor_template, v8::ObjectTemplate) \
334334
V(filehandlereadwrap_template, v8::ObjectTemplate) \
335-
V(fsreqpromise_constructor_template, v8::ObjectTemplate) \
336335
V(fs_use_promises_symbol, v8::Symbol) \
336+
V(fsreqpromise_constructor_template, v8::ObjectTemplate) \
337337
V(handle_wrap_ctor_template, v8::FunctionTemplate) \
338338
V(host_import_module_dynamically_callback, v8::Function) \
339339
V(host_initialize_import_meta_object_callback, v8::Function) \
@@ -345,9 +345,9 @@ struct PackageConfig {
345345
V(libuv_stream_wrap_ctor_template, v8::FunctionTemplate) \
346346
V(message_port, v8::Object) \
347347
V(message_port_constructor_template, v8::FunctionTemplate) \
348-
V(pipe_constructor_template, v8::FunctionTemplate) \
349348
V(performance_entry_callback, v8::Function) \
350349
V(performance_entry_template, v8::Function) \
350+
V(pipe_constructor_template, v8::FunctionTemplate) \
351351
V(process_object, v8::Object) \
352352
V(promise_handler_function, v8::Function) \
353353
V(promise_wrap_template, v8::ObjectTemplate) \
@@ -364,7 +364,7 @@ struct PackageConfig {
364364
V(tty_constructor_template, v8::FunctionTemplate) \
365365
V(udp_constructor_function, v8::Function) \
366366
V(url_constructor_function, v8::Function) \
367-
V(write_wrap_template, v8::ObjectTemplate)
367+
V(write_wrap_template, v8::ObjectTemplate) \
368368

369369
class Environment;
370370

0 commit comments

Comments
 (0)