-
Notifications
You must be signed in to change notification settings - Fork 172
Closed
Labels
non-prod-polyfillTHIS POLYFILL IS NOT FOR PRODUCTION USE!THIS POLYFILL IS NOT FOR PRODUCTION USE!normativeWould be a normative change to the proposalWould be a normative change to the proposalspec-textSpecification text involvedSpecification text involved
Description
Can we add requirements for NanosecondsToDays to disallow bad return values, like for example:
- Require the sign for
result.[[Days]]andresult.[[Nanoseconds]]matches the sign of the inputnanoseconds. - Require that
abs(result.[[Nanoseconds]])is less thanresult.[[DayLength]]. - Maybe also require that
result.[[DayLength]]is less than some constant, for examplensPerDay * 2?
Metadata
Metadata
Assignees
Labels
non-prod-polyfillTHIS POLYFILL IS NOT FOR PRODUCTION USE!THIS POLYFILL IS NOT FOR PRODUCTION USE!normativeWould be a normative change to the proposalWould be a normative change to the proposalspec-textSpecification text involvedSpecification text involved