Skip to content

Commit

Permalink
src: remove unnecessary call to SetHiddenPrototype in contextify
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
verwaest committed Oct 27, 2017
1 parent 363091d commit 9a640d9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/node_contextify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ class ContextifyContext {
EscapableHandleScope scope(env->isolate());
Local<FunctionTemplate> function_template =
FunctionTemplate::New(env->isolate());
function_template->SetHiddenPrototype(true);

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

Expand Down

0 comments on commit 9a640d9

Please sign in to comment.