-
Notifications
You must be signed in to change notification settings - Fork 565
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
Fix bug where objects are converted to '[Object object]' in a VM #255
Conversation
I think we might have to languish in the fact that we added this feature knowing that this could be a risk. Thanks for this pull request @markdalgleish , I'll try it out as soon as I can 👍 |
hey, guys, wondering if there's anything blocking this from being merged. |
@juangl as first step, we probably need a benchmark to compare this against the existing code - some questions might appear if the benchmark is severely impacted |
I agree with your statement about the existing code |
Benchmark output from today
This change has a severe performance impact on the I don't know if that trade-off is ecofriendly for running this in a |
Merged in #281, with the typical usage performance problems resolved |
Fixes #240
I added a test case that fails against the original implementation.
This comes with a bit of a perf hit but unfortunately there's no way around it if you want to reliably detect the native
toString
function. I made a JSBench so you can see the difference: https://jsbench.me/1xkpq8eozj