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

Support Dates #27

Merged
merged 2 commits into from
Jul 15, 2017
Merged

Support Dates #27

merged 2 commits into from
Jul 15, 2017

Commits on Apr 2, 2017

  1. Support dates

    We detect dates simply by doing an instanceof check on raw value being serialized.
    
    We're also now looking at the typeof the *rawValue* not the toJSON()ed value
    when determining whether a value is a function or a RegExp. This should allow
    functions and regexs to be serialized properly even if a Function.prototype.toJSON
    or a RegExp.prototype.toJSON has been added for some reason.
    
    Finally, for consistency and because util.isRegExp has been deprecated, we also
    update our logic for detecting RegExps to use the same strategy as for Dates.
    ethanresnick committed Apr 2, 2017
    1 Configuration menu
    Copy the full SHA
    ba11f28 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3a13d54 View commit details
    Browse the repository at this point in the history