@@ -107,6 +107,11 @@ struct PackageConfig {
107
107
V (napi_env, " node:napi:env" ) \
108
108
V (napi_wrapper, " node:napi:wrapper" ) \
109
109
110
+ // Symbols are per-isolate primitives but Environment proxies them
111
+ // for the sake of convenience.
112
+ #define PER_ISOLATE_SYMBOL_PROPERTIES (V ) \
113
+ V (handle_onclose_symbol, " handle_onclose" ) \
114
+
110
115
// Strings are per-isolate primitives but Environment proxies them
111
116
// for the sake of convenience. Strings should be ASCII-only.
112
117
#define PER_ISOLATE_STRING_PROPERTIES (V ) \
@@ -127,7 +132,6 @@ struct PackageConfig {
127
132
V (chunks_sent_since_last_write_string, " chunksSentSinceLastWrite" ) \
128
133
V (constants_string, " constants" ) \
129
134
V (oncertcb_string, " oncertcb" ) \
130
- V (onclose_string, " _onclose" ) \
131
135
V (code_string, " code" ) \
132
136
V (cwd_string, " cwd" ) \
133
137
V (dest_string, " dest" ) \
@@ -356,10 +360,12 @@ class IsolateData {
356
360
inline MultiIsolatePlatform* platform () const ;
357
361
358
362
#define VP (PropertyName, StringValue ) V(v8::Private, PropertyName)
363
+ #define VY (PropertyName, StringValue ) V(v8::Symbol, PropertyName)
359
364
#define VS (PropertyName, StringValue ) V(v8::String, PropertyName)
360
365
#define V (TypeName, PropertyName ) \
361
366
inline v8::Local<TypeName> PropertyName (v8::Isolate* isolate) const ;
362
367
PER_ISOLATE_PRIVATE_SYMBOL_PROPERTIES (VP)
368
+ PER_ISOLATE_SYMBOL_PROPERTIES (VY)
363
369
PER_ISOLATE_STRING_PROPERTIES (VS)
364
370
#undef V
365
371
#undef VS
@@ -370,10 +376,12 @@ class IsolateData {
370
376
371
377
private:
372
378
#define VP (PropertyName, StringValue ) V(v8::Private, PropertyName)
379
+ #define VY (PropertyName, StringValue ) V(v8::Symbol, PropertyName)
373
380
#define VS (PropertyName, StringValue ) V(v8::String, PropertyName)
374
381
#define V (TypeName, PropertyName ) \
375
382
v8::Eternal<TypeName> PropertyName ## _;
376
383
PER_ISOLATE_PRIVATE_SYMBOL_PROPERTIES (VP)
384
+ PER_ISOLATE_SYMBOL_PROPERTIES (VY)
377
385
PER_ISOLATE_STRING_PROPERTIES (VS)
378
386
#undef V
379
387
#undef VS
@@ -737,13 +745,16 @@ class Environment {
737
745
// Strings and private symbols are shared across shared contexts
738
746
// The getters simply proxy to the per-isolate primitive.
739
747
#define VP (PropertyName, StringValue ) V(v8::Private, PropertyName)
748
+ #define VY (PropertyName, StringValue ) V(v8::Symbol, PropertyName)
740
749
#define VS (PropertyName, StringValue ) V(v8::String, PropertyName)
741
750
#define V (TypeName, PropertyName ) \
742
751
inline v8::Local<TypeName> PropertyName () const ;
743
752
PER_ISOLATE_PRIVATE_SYMBOL_PROPERTIES (VP)
753
+ PER_ISOLATE_SYMBOL_PROPERTIES (VY)
744
754
PER_ISOLATE_STRING_PROPERTIES (VS)
745
755
#undef V
746
756
#undef VS
757
+ #undef VY
747
758
#undef VP
748
759
749
760
#define V (PropertyName, TypeName ) \
0 commit comments