Re: Objects in Firefox

27 views
Skip to first unread message

Michael Bielski

unread,
Mar 8, 2013, 11:19:41 AM3/8/13
to jasmi...@googlegroups.com
Turns out this actually does work and I had other problems with my tests.

Michael Bielski

unread,
Mar 8, 2013, 1:22:05 PM3/8/13
to jasmi...@googlegroups.com
More details: the error is happening because the object was created with default properties, all of which have a value of False. By doing it this way:

Object.defineProperty(window, 'sessionStorage', { value: mock,configurable:true,enumerable:true,writable:true });

The problem is solved. This was actually suggested in the comments to that issue. Sometimes it pays to read. This was also highlighted in this blog post:

Reply all
Reply to author
Forward
0 new messages