Skip to content

Remove logger.checkNew #2861

Closed
Closed
@ricmoo

Description

Describe the Feature

The use of the logger.checkNew in classes prevents users from accidentally using a class as a function and prevents “old-school” coding styles which have magic constructors from going unnoticed, but modern developers seldom use this style.

The run-time logger.checkNew also prevents certain transpiler configurations from working with TypeScript (and presumably Babel), so it makes sense to remove these checks.

Code Example

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement.fixed/completeThis Bug is fixed or Enhancement is complete and published.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions