Skip to content

Unused prototype objects from V8 FunctionTemplate initialization #17668

@TimothyGu

Description

@TimothyGu
  • Version: all
  • Platform: all
  • Subsystem: src
> typeof process.binding('udp_wrap').UDP.prototype.bind6.prototype
'object'

We don't need these prototypes, and we can get rid of them either through v8::FunctionTemplate::RemovePrototype() or indirectly, by specifying v8::ConstructorBehavior::kThrow when creating the v8::FunctionTemplate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++Issues and PRs that require attention from people who are familiar with C++.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions