On Thu, Sep 24, 2020 at 11:39 AM Guillaume Grossetie
<
gross...@gmail.com> wrote:
>
> Thanks for your answer Ben.
>
> > Perhaps V8 could be made smart enough to distinguish between benign
> > and non-benign prototype tampering but the subset that can be proven
> > safe is probably so small that it's not worth the complexity and
> > overhead.
>
> Yes, I agree.
> Alternatively, could v8 use the pre 7.1 impl of Array#splice when the prototype has been modified?
> Obviously, this is easier said than done and I'm guessing that it might not be an easy task.
> But it's worth noting that the pre 7.1 impl performance (with and without prototype tampering) were similar.
> Not sure how it was all made possible... but it was great for us :)
>
> Anyway thanks again for your input!
> Have a nice day
open-coding it. I did something similar in Node.js a few years ago, to