Workaround for IE throwing InvalidAccessError on db open. Fixes #32#34
Workaround for IE throwing InvalidAccessError on db open. Fixes #32#34jonohill wants to merge 1 commit intobramski:masterfrom
Conversation
There was a problem hiding this comment.
Line exceeds maximum allowed length
|
I've been doing a bit more research on this one. The real issue actually stems from the behaviour of Math.max in the I found a bug report at Microsoft Connect which covers the As for what to do here, there are at least a few options, such as:
I'm thinking option 3. Thoughts? As for making this IE specific, I can't think of a nice way to test for the bad behaviour. The result of |
|
Option 3 sounds just fine. Make sure you generate the source files and run the tests before you resubmit a PR. |
|
Closing this PR. See #38 with the new fix. |
Despite
typeof dbVersionequalling"number"in IE, it throws an InvalidAccessError when attempting to call open.parseIntstill results indbVersionbeing a number, as you'd expect, but seems to remind IE of what it's getting.