[whatwg] Overriding functions in DOM Storage

Cameron McCormack cam at mcc.id.au
Sun Jun 21 05:27:21 PDT 2009


Cameron McCormack:
> Another edge case:
…
>   // Just a normal property deletion...
>   delete Storage.prototype.removeItem;

Actually I just realised that this won’t work, since properties that
correspond to operations are DontDelete.  But this and the other example
can still demonstrate when corresponding named properties get created
and removed if you use Storage.prototype.blah, for example (which when
created wouldn’t be DontDelete).

-- 
Cameron McCormack ≝ http://mcc.id.au/



More information about the whatwg mailing list