From e50775b31c48bd52b4588ff3895e8fbe86af8787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Fri, 18 Jan 2019 21:01:31 +0900 Subject: [PATCH] =?UTF-8?q?node-gyp=E3=81=AE=E8=AD=A6=E5=91=8A=E3=82=92?= =?UTF-8?q?=E7=9B=B4=E3=81=99=20(#3906)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update crypto_key.cc * Update crypto_key.cc * Update crypto_key.cc --- src/crypto_key.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto_key.cc b/src/crypto_key.cc index fe67b1453..658586bae 100644 --- a/src/crypto_key.cc +++ b/src/crypto_key.cc @@ -8,7 +8,7 @@ NAN_METHOD(extractPublic) { - const auto sourceString = info[0]->ToString(); + const auto sourceString = info[0]->ToString(Nan::GetCurrentContext()).ToLocalChecked(); if (!sourceString->IsOneByte()) { Nan::ThrowError("Malformed character found"); return;