@@ -469,7 +469,7 @@ class NoArrayBufferZeroFillScope {
469
469
V (x_forwarded_string, " x-forwarded-for" ) \
470
470
V (zero_return_string, " ZERO_RETURN" )
471
471
472
- #define ENVIRONMENT_STRONG_PERSISTENT_TEMPLATES (V ) \
472
+ #define PER_ISOLATE_TEMPLATES (V ) \
473
473
V (async_wrap_ctor_template, v8::FunctionTemplate) \
474
474
V (async_wrap_object_ctor_template, v8::FunctionTemplate) \
475
475
V (base_object_ctor_template, v8::FunctionTemplate) \
@@ -1359,8 +1359,8 @@ class Environment : public MemoryRetainer {
1359
1359
#define V (PropertyName, TypeName ) \
1360
1360
inline v8::Local<TypeName> PropertyName () const ; \
1361
1361
inline void set_ ## PropertyName(v8::Local<TypeName> value);
1362
+ PER_ISOLATE_TEMPLATES (V)
1362
1363
ENVIRONMENT_STRONG_PERSISTENT_VALUES (V)
1363
- ENVIRONMENT_STRONG_PERSISTENT_TEMPLATES (V)
1364
1364
#undef V
1365
1365
1366
1366
inline v8::Local<v8::Context> context () const ;
@@ -1652,9 +1652,11 @@ class Environment : public MemoryRetainer {
1652
1652
template <typename T>
1653
1653
void ForEachBaseObject (T&& iterator);
1654
1654
1655
+ #define V (PropertyName, TypeName ) v8::Eternal<TypeName> PropertyName##_;
1656
+ PER_ISOLATE_TEMPLATES (V)
1657
+ #undef V
1655
1658
#define V (PropertyName, TypeName ) v8::Global<TypeName> PropertyName ## _;
1656
1659
ENVIRONMENT_STRONG_PERSISTENT_VALUES (V)
1657
- ENVIRONMENT_STRONG_PERSISTENT_TEMPLATES (V)
1658
1660
#undef V
1659
1661
1660
1662
v8::Global<v8::Context> context_;
0 commit comments