question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`objectStoreNames`'s type seems wrong

See original GitHub issue

https://github.com/jakearchibald/idb/blob/809a75ccc31c46ac62174ff9c2c10efffa5a53df/lib/entry.ts#L149

As far as I can tell, within my browser, this method returns a DOMStringList, which is not an array.

In particular, it contains a method contains, and does not contain array methods such as indexOf, which leads to both static and run-time errors.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jakearchibaldcommented, Sep 19, 2021

I’ll fix this tomorrow

1reaction
shadow-lightcommented, Sep 18, 2021

I think there’s still an issue with objectStoreNames when it is accessed off a transaction: https://github.com/jakearchibald/idb/blob/abce3c7c2fe4b3cfe4e1eb77f41ffaf0c79fd073/src/entry.ts#L531

It is array like, rather than DOMStringList. Just got burnt by this in a migration where I used includes instead of contains 😞

Read more comments on GitHub >

github_iconTop Results From Across the Web

Here's Why Your Personality Test Results Might Be Wrong
Not sure what your personality type is? Personality Hacker has the most accurate free online personality indicator I've been able to find.
Read more >
7 Ways You Might Be Using Personality Type Wrong
I'm a huge fan of Myers-Briggs personality types, but I come in ... But, in my opinion, here are 7 ways people use...
Read more >
7 Reasons Why You Might Be Wrong About Your Personality ...
Remember that, at the end of the day, no type is better or worse than the other, and you're much more than a...
Read more >
Why the Myers-Briggs test is totally meaningless - Vox
The test claims that based on 93 questions, it can group all the people of the world into 16 different discrete "types" —...
Read more >
Why Your Myers-Briggs Personality Type Is Meaningless
The most popular personality test,The Myers-Briggs, isn't reliable or valid. So, why does everyone keep taking it?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found