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
My understanding is that 'crypto' is not deprecated, only crypto.DEFAULT_ENCODING is. So crypto needs to still work with --throw-deprecation! If 'crypto' in its entirity is deprecated, then what is the migration path for crypto.randomBytes?
The text was updated successfully, but these errors were encountered:
Could the following test be added to every internal module?
For each module, have a test that runs on 'node --throw-deprecation' and imports the module. If any part of the module is not deprecated, then just importing should never throw an error. Only accessing the deprecated parts of the module should.
If the entire module is deprecated, this unit test would be marked as failed until manually removed for just this module.
module 'crypto' is broken as it doesn't work at all with '--throw-deprecation'.
C:\>node --experimental-modules --throw-deprecation test.mjs
My understanding is that 'crypto' is not deprecated, only crypto.DEFAULT_ENCODING is. So crypto needs to still work with --throw-deprecation! If 'crypto' in its entirity is deprecated, then what is the migration path for crypto.randomBytes?
The text was updated successfully, but these errors were encountered: