-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewrite bind function in prototype with console inside causes Maximum call stack size exceeded #32361
Comments
We use |
@BridgeAR |
This is worse now, because it triggers an assertion:
Candidate for primordials migration. /cc @aduh95 |
There are two uses of |
If we cannot change those to use primordials, we need to do something else. It's not OK for the process to crash in this case. |
I wonder what the perf regression is of "cheating with"*:
That would mean (hopefully) no perf regressions for 99.9% of users while still being resilient (but slower) for people who want to override .bind
|
Given @BridgeAR comment above maybe Node.js should simply not allow users to override |
@dario-piotrowicz that's kind of irrelevant, since the JS spec requires that it be overridable - if node restricted that, then node wouldn't be a compliant JS engine. |
@ljharb I see 😓 that makes sense thanks 👍 |
Version: v12.4
Platform:Darwin Kernel Version 18.6.0
my issue code is quite simple:
it works well in chrome, I don't know if it'a a feature or bug in nodejs
thanks
The text was updated successfully, but these errors were encountered: