Skip to content

rewrite bind function in prototype with console inside causes Maximum call stack size exceeded #32361

Open
@lessfish

Description

@lessfish

Version: v12.4
Platform:Darwin Kernel Version 18.6.0

my issue code is quite simple:

Function.prototype.bind = function () {
  console.log(1)
}

const fn = function () {}
fn.bind()

image

it works well in chrome, I don't know if it'a a feature or bug in nodejs

thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    consoleIssues and PRs related to the console subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions