-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
Move the assert module to userlandΒ #19652
Copy link
Copy link
Closed
Labels
assertIssues and PRs related to the assert subsystem.Issues and PRs related to the assert subsystem.discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.
Metadata
Metadata
Assignees
Labels
assertIssues and PRs related to the assert subsystem.Issues and PRs related to the assert subsystem.discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I feel that maintaining the
assertmodule as part of node has been an unnecessary distraction for the project for a long time. If you search forassertacross issues and PRs, 2360 results turn up. Now major features are being added, such as diffs and colored error messages, so it seems like it's only getting worse.At the same time the module is classified as "stable" and hasn't been able to correct all the weirdness of the original CommonJS spec, leading to surprises when users don't use the "strict" and "deep" versions of the methods.
Liberating the module from core would allow it to evolve, and hopefully new users would stop picking it up "by default" and being surprised by its quirks.