(type)
| 852 | } |
| 853 | |
| 854 | function keyObjectTypeToString(type) { |
| 855 | switch (type) { |
| 856 | case kKeyTypeSecret: return 'secret'; |
| 857 | case kKeyTypePublic: return 'public'; |
| 858 | case kKeyTypePrivate: return 'private'; |
| 859 | default: { |
| 860 | const assert = require('internal/assert'); |
| 861 | assert.fail('Unreachable code'); |
| 862 | } |
| 863 | } |
| 864 | } |
| 865 | |
| 866 | // The helpers below return a KeyObject's native-backed slot values, |
| 867 | // populating the per-instance cache on first access via a single native |
no test coverage detected
searching dependent graphs…