andrewplummer / Sugar

A Javascript library for working with native objects.

Home Page:https://sugarjs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider throwing errors on date creation with invalid input.

andrewplummer opened this issue · comments

Would like to at least consider Date.create throwing errors on invalid input and opening this to discussion.

Pros:

Simpler handling through normal control flow.

Cons:

Not consistent with new Date API.

Others?