-
Notifications
You must be signed in to change notification settings - Fork 155
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
remove observable calls to "from" #1419
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1419 +/- ##
==========================================
+ Coverage 95.73% 95.75% +0.02%
==========================================
Files 19 19
Lines 11143 11129 -14
Branches 1804 1801 -3
==========================================
- Hits 10668 10657 -11
+ Misses 472 469 -3
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
1. If Type(_item_) is Object, then | ||
1. If ? HasProperty(_item_, *"timeZone"*) is *false*, return _item_. | ||
1. Set _item_ to ? Get(_item_, *"timeZone"*). | ||
1. If Type(_item_) is Object and ? HasProperty(_item_, *"timeZone"*) is *false*, return _item_. |
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.
same 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.
Thanks! A few changes still to be made. I think it's fine to un-"draft" this PR by the way.
polyfill/test/PlainDateTime/constructor/constructor/order-of-operations.js
Show resolved
Hide resolved
This commit removes observable "from" lookups for `Calendar` and `TimeZone` from the spec and the polyfill, in response to the delegate reviews. Refs: tc39#1293
`from` methods can no longer be monkey-patched, so this commit removes that behavior from the cookbook documentation.
ba3dbd9
to
f529165
Compare
f529165
to
671d3eb
Compare
The polyfill no longer does observable `from` lookups for `Calendar` and `TimeZone`. Therefore, this commit removes tests that check that behavior and modifies those that merely rely on it.
671d3eb
to
20eae59
Compare
20eae59
to
955c9d2
Compare
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.
Thanks, CreateTemporalCalendarFromStatic is the way to go.
Fixes: #1293
/cc @ptomato @ljharb