-
Notifications
You must be signed in to change notification settings - Fork 461
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
option of Calendar.dateAdd is not undefined but null #3262
Comments
I think the following tests has the same issue 'built-ins/Temporal/Duration/prototype/add/calendar-dateadd-called-with-options-undefined': [FAIL], |
Yes, this was a discrepancy with the spec text. I'm hoping to present that normative change at the December TC39 meeting. I guess it's up to the maintainers whether to remove the tests affected by it in the meantime. |
I suggest we wait till the conclusion from Decemeber TC39 before changing anything. |
I didn't get a chance to finish this for December and I'm hoping to present it at the March TC39 meeting. |
This test is wrong I think
Temporal/Duration/prototype/add/calendar-dateadd-called-with-options-undefined.js
The problem is in step6 of 7.3.18 Temporal.Duration.prototype.add ( other [ , options ] )
https://tc39.es/proposal-temporal/#sec-temporal-addzoneddatetime
it will call AddDuration. then
AddDuration will call AddZonedDateTime in step 7d
https://tc39.es/proposal-temporal/#sec-temporal-addduration
and then in AddZonedDateTime
https://tc39.es/proposal-temporal/#sec-temporal-addzoneddatetime
options will be a null object (not undefined)
then
so what the Calendar.dateAdd will get in this case is a empty object, not undefined.
The text was updated successfully, but these errors were encountered: