title: Change the value of window.localStorage in JavascriptCore (redefining un-configurable property from C/Obj-C APIs)
body: <p>The WebKit framework in OSX has a broken localStorage implementation which doesn't persist stored data (data isn't there after application restart).</p>
  
  <p>So i've implemented an alternative LocalStorage object.</p>
  
  <p>However, I can't assign <code>window.localStorage = myLocalStorage</code> because <code>localStorage</code> is defined as non-writeable, and non-configurable.</p>
  
  <p>I can't find a way to override such property in JavascriptCore, by using the C/Obj-C APIs. Is there a way to do that?</p>