We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
crypto.hash()
1 parent 4dafa77 commit c631a71Copy full SHA for c631a71
src/crypto/crypto_hash.cc
@@ -275,9 +275,9 @@ void Hash::OneShotDigest(const FunctionCallbackInfo<Value>& args) {
275
}
276
277
DataPointer output = ([&]() -> DataPointer {
278
- Utf8Value utf8(isolate, args[3]);
279
ncrypto::Buffer<const unsigned char> buf;
280
if (args[3]->IsString()) {
+ Utf8Value utf8(isolate, args[3]);
281
buf = {
282
.data = reinterpret_cast<const unsigned char*>(utf8.out()),
283
.len = utf8.length(),
0 commit comments