Skip to content

fix: waitUntil and transaction type - #1326

Merged
github-actions[bot] merged 2 commits into
microsoft:mainfrom
susiwen8:lib
May 4, 2022
Merged

github-actions[bot] merged 2 commits into
microsoft:mainfrom
susiwen8:lib

Conversation

@susiwen8

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented May 4, 2022

Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by Kagami Sascha Rosylight (@saschanaz) - if they write a comment saying "LGTM" then it will be merged.

@HolgerJeromin

Copy link
Copy Markdown
Contributor

Thanks for helping.
You manipulated a generated file.
The correct place would be overridingTypes.jsonc

@susiwen8

Copy link
Copy Markdown
Contributor Author

Thanks for helping. You manipulated a generated file. The correct place would be overridingTypes.jsonc

Thanks!

@saschanaz

Copy link
Copy Markdown
Contributor

There is a reason that ExtendableEvent.waitUntil accepts any: It basically accept any object and wraps it with Promise.resolve() if it's not a promise.

But strictly requiring a promise seems to make a sense in this case.

@susiwen8

Copy link
Copy Markdown
Contributor Author

There is a reason that ExtendableEvent.waitUntil accepts any: It basically accept any object and wraps it with Promise.resolve() if it's not a promise.

But strictly requiring a promise seems to make a sense in this case.

Yes, I saw you commit 3 years ago.
I read doc in MDN. Telling that waitUntil accept a promise.

@saschanaz

Copy link
Copy Markdown
Contributor

Whenever MDN says a promise as a parameter it means anything. I'll file a bug there.

@susiwen8

Copy link
Copy Markdown
Contributor Author

So I should change waitUntil back?

@saschanaz

Kagami Sascha Rosylight (saschanaz) commented May 4, 2022 •

Copy link
Copy Markdown
Contributor

You can keep it, but you need to follow what Holger Jeromin (@HolgerJeromin) said to fix the test failure: #1326 (comment)

@susiwen8

Copy link
Copy Markdown
Contributor Author

Kagami Sascha Rosylight (@saschanaz) Tests passed. Please take a look.

@saschanaz

Kagami Sascha Rosylight (saschanaz) commented May 4, 2022 •

Copy link
Copy Markdown
Contributor

It's still running 😉 (Please don't ping for test results, I'll look when I can.)

@saschanaz

Kagami Sascha Rosylight (saschanaz) commented May 4, 2022 •

Copy link
Copy Markdown
Contributor

lgtm

(Checking if this repo supports automerge)

(Oops, it finished right after this comment.)

@github-actions
github-actions Bot merged commit 837b023 into microsoft:main May 4, 2022
@github-actions

github-actions Bot commented May 4, 2022

Copy link
Copy Markdown
Contributor

Merging because Kagami Sascha Rosylight (@saschanaz) is a code-owner of all the changes - thanks!

@susiwen8
susiwen8 (susiwen8) deleted the lib branch May 4, 2022 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

missing: transaction durability in indexeddb webworker: waitUntil should require a Promise

3 participants