In javascript you can use property descriptors to prevent overwriting. I'd imagine you could get v8 to set them on your functions
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty On Wed, Jun 8, 2016 at 2:27 PM, Brandon Jonson <[email protected]> wrote: > I've added custom code that extends Object to include a few other > functions. Of course anybody could now go in and overwrite those or add > their own functions simply by doing Object.Prototype.xxx = xxx. Is there an > official way of locking that ability in V8 so at least the functions added > could not be overwritten? > > Thanks! > > -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Spencer wrote this -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
