From 9a640d991f6b131a6e4b8034899be34fd169dcb5 Mon Sep 17 00:00:00 2001 From: Toon Verwaest Date: Fri, 27 Oct 2017 17:41:07 +0200 Subject: [PATCH] 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. --- src/node_contextify.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 12edf20810fe57..b59be3eb5011bf 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -140,7 +140,6 @@ class ContextifyContext { EscapableHandleScope scope(env->isolate()); Local function_template = FunctionTemplate::New(env->isolate()); - function_template->SetHiddenPrototype(true); function_template->SetClassName(sandbox_obj->GetConstructorName());