-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ext/webstorage): IndexedDB #14035
Conversation
|
||
const request = webidl.createBranded(IDBOpenDBRequest); | ||
|
||
(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps my JS-fu is lacking but what's the point of this async IIFE? It's created, invoked, try-catched and finishes immediately, there is no await point so at least I cannot see anything to this except maybe strack trace differences here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its not done yet.
const value = webidl.converters.BufferSource(input); | ||
return { | ||
type: "binary", | ||
value: value.slice(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use primordial. EDIT: Oops looks like its not ready yet. Mark as draft maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mark as draft maybe?
One of the TODOs in the original comment says "complete impl" 🙃
keys.find((item) => compareTwoKeys(item, key)) === undefined | ||
) { | ||
keys.push(key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
} | ||
// TODO: complete implementation | ||
} else if (ArrayIsArray(key)) { | ||
return key.every(isValidKeyPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
const identifiers = keyPath.split("."); | ||
assert(identifiers.length !== 0); | ||
identifiers.pop(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not doing primordials yet
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
closes #1699
TODO: