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

util: allow deprecate on classes #7690

Closed
wants to merge 1 commit into from
Closed

util: allow deprecate on classes #7690

wants to merge 1 commit into from

Commits on Jul 14, 2016

  1. util: allow deprecate on classes

    Classes objects cannot be called without new. util.deprecate executes
    'fn.apply'.
    
    Therefore, classes cannot be deprecated with util.deprecate.
    
    This uses 'new.target' to detect (when process is defined) calls to
    constructor to allow deprecate on class.
    vdeturckheim committed Jul 14, 2016
    Configuration menu
    Copy the full SHA
    bec56bc View commit details
    Browse the repository at this point in the history