Skip to content

Commit a4255cc

Browse files
committed
squash! squash! src: move Environment::context out of strong properties
s/TEMPLATE/TEMPLATES/
1 parent 392c619 commit a4255cc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/env-inl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,13 +1106,13 @@ void AsyncRequest::set_stopped(bool flag) {
11061106
inline void Environment::set_ ## PropertyName(v8::Local<TypeName> value) { \
11071107
PropertyName ## _.Reset(isolate(), value); \
11081108
}
1109-
ENVIRONMENT_STRONG_PERSISTENT_TEMPLATE(V)
1109+
ENVIRONMENT_STRONG_PERSISTENT_TEMPLATES(V)
11101110
ENVIRONMENT_STRONG_PERSISTENT_VALUES(V)
11111111
#undef V
11121112

1113-
inline v8::Local<v8::Context> Environment::context() const {
1114-
return PersistentToLocal::Strong(context_);
1115-
}
1113+
inline v8::Local<v8::Context> Environment::context() const {
1114+
return PersistentToLocal::Strong(context_);
1115+
}
11161116
} // namespace node
11171117

11181118
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS

src/env.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ constexpr size_t kFsStatsBufferLength = kFsStatsFieldsNumber * 2;
340340
V(x_forwarded_string, "x-forwarded-for") \
341341
V(zero_return_string, "ZERO_RETURN")
342342

343-
#define ENVIRONMENT_STRONG_PERSISTENT_TEMPLATE(V) \
343+
#define ENVIRONMENT_STRONG_PERSISTENT_TEMPLATES(V) \
344344
V(as_callback_data_template, v8::FunctionTemplate) \
345345
V(async_wrap_ctor_template, v8::FunctionTemplate) \
346346
V(async_wrap_object_ctor_template, v8::FunctionTemplate) \
@@ -1060,7 +1060,7 @@ class Environment : public MemoryRetainer {
10601060
inline v8::Local<TypeName> PropertyName() const; \
10611061
inline void set_ ## PropertyName(v8::Local<TypeName> value);
10621062
ENVIRONMENT_STRONG_PERSISTENT_VALUES(V)
1063-
ENVIRONMENT_STRONG_PERSISTENT_TEMPLATE(V)
1063+
ENVIRONMENT_STRONG_PERSISTENT_TEMPLATES(V)
10641064
#undef V
10651065

10661066
inline v8::Local<v8::Context> context() const;
@@ -1295,7 +1295,7 @@ class Environment : public MemoryRetainer {
12951295

12961296
#define V(PropertyName, TypeName) v8::Global<TypeName> PropertyName ## _;
12971297
ENVIRONMENT_STRONG_PERSISTENT_VALUES(V)
1298-
ENVIRONMENT_STRONG_PERSISTENT_TEMPLATE(V)
1298+
ENVIRONMENT_STRONG_PERSISTENT_TEMPLATES(V)
12991299
#undef V
13001300

13011301
v8::Global<v8::Context> context_;

0 commit comments

Comments
 (0)