You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
ricmoo
added
fixed/complete
This Bug is fixed or Enhancement is complete and published.
and removed
on-deck
This Enhancement or Bug is currently being worked on.
labels
May 14, 2022
Woodpile37
pushed a commit
to Woodpile37/ethers.js
that referenced
this issue
Jan 14, 2024
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
The text was updated successfully, but these errors were encountered: