Skip to content
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

Fixes #848

Merged
merged 6 commits into from
Sep 1, 2020
Merged

Fixes #848

merged 6 commits into from
Sep 1, 2020

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Aug 25, 2020

Miscellaneous fixes.

This fixes `npm run lint -- --fix`.
@codecov
Copy link

codecov bot commented Aug 25, 2020

Codecov Report

Merging #848 into main will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #848   +/-   ##
=======================================
  Coverage   92.35%   92.35%           
=======================================
  Files          17       17           
  Lines        4840     4841    +1     
  Branches      751      752    +1     
=======================================
+ Hits         4470     4471    +1     
  Misses        363      363           
  Partials        7        7           
Flag Coverage Δ
#test262 57.75% <50.00%> (-0.03%) ⬇️
#tests 87.05% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
polyfill/lib/ecmascript.mjs 94.88% <100.00%> (ø)
polyfill/lib/timezone.mjs 94.75% <100.00%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d8fa7b1...f58d5ff. Read the comment docs.

Ms2ger
Ms2ger previously requested changes Aug 26, 2020
spec/abstractops.html Show resolved Hide resolved
polyfill/lib/timezone.mjs Show resolved Hide resolved
Copy link
Member

@ryzokuken ryzokuken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with @Ms2ger's comments addressed.

Although they were never used in any observable output, the polyfill's
ParseISODateTime would generate offset strings like '+undefined:00' when
parsing a string with a Z designator.

Change the spec accordingly, to always make the result of parsing a time
zone string with a Z equivalent to "+00:00[UTC]". Remove some duplicated
logic.
GetEpochFromParts returns null if the DateTime fields are outside of the
supported Date range. Callers need to check for a null return value.
If we change Absolute to use the offset and not the bracket name, then
these tests will start failing.
@ptomato
Copy link
Collaborator Author

ptomato commented Sep 1, 2020

@Ms2ger Can you check this one again? It can't be merged until you mark that the requested changes have been addressed.

@ptomato ptomato dismissed Ms2ger’s stale review September 1, 2020 18:24

Requested changes are addressed.

@ptomato
Copy link
Collaborator Author

ptomato commented Sep 1, 2020

Oh, never mind, you can "dismiss review" if the comments have been addressed ... which strikes me as a bit rude though!

@ptomato ptomato merged commit 04320c8 into main Sep 1, 2020
@ptomato ptomato deleted the fixes branch September 1, 2020 18:25
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.

4 participants