[extensions] Create FunctionTemplate with the correct ConstructorBehavior
Instead of using the default arguments of v8::ConstructorBehavior::kAllow and then immediately calling FunctionTemplate::RemovePrototype, this patch changes the FunctionTemplateInfo::New to pass in the correct value for v8::ConstructorBehavior. There is no change in observable behavior with this patch. In the future, this change will allow v8 to correctly cache only the instantiable templates (crbug.com/v8/11284) improving performance of this template cache. Bug: v8:11288 Change-Id: I0392fd83fbeeb5a0363d75742bcae9a5239ac715 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2616412Reviewed-by:Jochen Eisinger <jochen@chromium.org> Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org> Cr-Commit-Position: refs/heads/master@{#842618}
Showing
Please register or sign in to comment