Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! src: include crypto in the bootstrap snapshot
  • Loading branch information
joyeecheung committed Mar 11, 2022
commit 22b7b8c2b36a467210a9933da61b19d933389df0
37 changes: 20 additions & 17 deletions test/parallel/test-bootstrap-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const expectedModules = new Set([
'Internal Binding constants',
'Internal Binding contextify',
'Internal Binding credentials',
'Internal Binding crypto',
'Internal Binding errors',
'Internal Binding fs_dir',
'Internal Binding fs_event_wrap',
Expand Down Expand Up @@ -45,22 +44,6 @@ const expectedModules = new Set([
'Internal Binding v8',
'Internal Binding worker',
'NativeModule buffer',
'NativeModule crypto',
'NativeModule internal/crypto/certificate',
'NativeModule internal/crypto/cipher',
'NativeModule internal/crypto/diffiehellman',
'NativeModule internal/crypto/hash',
'NativeModule internal/crypto/hashnames',
'NativeModule internal/crypto/hkdf',
'NativeModule internal/crypto/keygen',
'NativeModule internal/crypto/keys',
'NativeModule internal/crypto/pbkdf2',
'NativeModule internal/crypto/random',
'NativeModule internal/crypto/scrypt',
'NativeModule internal/crypto/sig',
'NativeModule internal/crypto/util',
'NativeModule internal/crypto/x509',
'NativeModule internal/streams/lazy_transform',
'NativeModule events',
'NativeModule fs',
'NativeModule internal/abort_controller',
Expand Down Expand Up @@ -223,6 +206,26 @@ if (process.env.NODE_V8_COVERAGE) {
expectedModules.add('Internal Binding profiler');
}

if (common.hasCrypto) {
expectedModules.add('Internal Binding crypto');
expectedModules.add('NativeModule crypto');
expectedModules.add('NativeModule internal/crypto/certificate');
expectedModules.add('NativeModule internal/crypto/cipher');
expectedModules.add('NativeModule internal/crypto/diffiehellman');
expectedModules.add('NativeModule internal/crypto/hash');
expectedModules.add('NativeModule internal/crypto/hashnames');
expectedModules.add('NativeModule internal/crypto/hkdf');
expectedModules.add('NativeModule internal/crypto/keygen');
expectedModules.add('NativeModule internal/crypto/keys');
expectedModules.add('NativeModule internal/crypto/pbkdf2');
expectedModules.add('NativeModule internal/crypto/random');
expectedModules.add('NativeModule internal/crypto/scrypt');
expectedModules.add('NativeModule internal/crypto/sig');
expectedModules.add('NativeModule internal/crypto/util');
expectedModules.add('NativeModule internal/crypto/x509');
expectedModules.add('NativeModule internal/streams/lazy_transform');
}

const { internalBinding } = require('internal/test/binding');
if (internalBinding('config').hasDtrace) {
expectedModules.add('Internal Binding dtrace');
Expand Down