Skip to content

'crypto' is broken with '--throw-deprecation' #25334

Description

@comods
  • Version: 11.6.0
  • Platform: Windows 7 64bit
  • Subsystem: crypto

module 'crypto' is broken as it doesn't work at all with '--throw-deprecation'.

C:\>node --experimental-modules --throw-deprecation test.mjs
//test.mjs
import 'crypto';

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions