Skip to content

Commit 9a640d9

Browse files
committed
src: remove unnecessary call to SetHiddenPrototype in contextify
Currently the template for the global object is explicitly marked as hidden. This is unnecessary since the global object is automatically marked as hidden by V8. Getting rid of this call gets rid of the last use of SetHiddenPrototype.
1 parent 363091d commit 9a640d9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/node_contextify.cc

-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ class ContextifyContext {
140140
EscapableHandleScope scope(env->isolate());
141141
Local<FunctionTemplate> function_template =
142142
FunctionTemplate::New(env->isolate());
143-
function_template->SetHiddenPrototype(true);
144143

145144
function_template->SetClassName(sandbox_obj->GetConstructorName());
146145

0 commit comments

Comments
 (0)