Skip to content

Commit 084dfdd

Browse files
committed
fixup! src: avoid prototype access in binding templates
1 parent 32d1b72 commit 084dfdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node_binding.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,8 @@ inline struct node_module* FindModule(struct node_module* list,
572572
void CreateInternalBindingTemplates(IsolateData* isolate_data) {
573573
#define V(modname) \
574574
do { \
575-
Local<ObjectTemplate> templ = ObjectTemplate::New(isolate_data->isolate());\
575+
Local<ObjectTemplate> templ = \
576+
ObjectTemplate::New(isolate_data->isolate()); \
576577
templ->SetInternalFieldCount(BaseObject::kInternalFieldCount); \
577578
_register_isolate_##modname(isolate_data, templ); \
578579
isolate_data->set_##modname##_binding_template(templ); \

0 commit comments

Comments
 (0)