[bindings] 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. Change-Id: I674d38689201045a994ccd6b6b6feb81b95eef69 Bug: v8:11288 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2543345 Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org> Reviewed-by:Ross McIlroy <rmcilroy@chromium.org> Reviewed-by:
Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#841527}
Showing
Please register or sign in to comment