(algorithm, options)
| 52 | const constants = internalBinding('constants').crypto; |
| 53 | |
| 54 | function Sign(algorithm, options) { |
| 55 | if (!(this instanceof Sign)) |
| 56 | return new Sign(algorithm, options); |
| 57 | validateString(algorithm, 'algorithm'); |
| 58 | this[kHandle] = new _Sign(); |
| 59 | this[kHandle].init(algorithm); |
| 60 | |
| 61 | FunctionPrototypeCall(Writable, this, options); |
| 62 | } |
| 63 | |
| 64 | ObjectSetPrototypeOf(Sign.prototype, Writable.prototype); |
| 65 | ObjectSetPrototypeOf(Sign, Writable); |
no test coverage detected