Hey Spencer,

Thanks for responding to this! This worked like a charm. Looks like I need 
to do a better job at reading the docs. 

This bare minimum worked with some caveats...

Object.defineProperty(Object.Prototype, 'nameOfFunction', {
  enumerable: false,
  configurable: false,
  writable: false,
  value: function() {
    //do work, return
    return "hello world";
  }
});

On Wednesday, June 8, 2016 at 3:27:56 PM UTC-5, Brandon Jonson 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.

Reply via email to