From 81f1732a05f0f8de552791c1dac9856a85fec5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 22 Jan 2016 09:19:06 +0100 Subject: [PATCH] src: replace deprecated String::NewFromOneByte PR-URL: https://github.com/nodejs/node/pull/4722 Reviewed-By: Ben Noordhuis Reviewed-By: Ali Ijaz Sheikh --- src/util-inl.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/util-inl.h b/src/util-inl.h index 69dc5b2a61a1a9..7ff6e51937bde7 100644 --- a/src/util-inl.h +++ b/src/util-inl.h @@ -157,8 +157,8 @@ inline v8::Local OneByteString(v8::Isolate* isolate, int length) { return v8::String::NewFromOneByte(isolate, reinterpret_cast(data), - v8::String::kNormalString, - length); + v8::NewStringType::kNormal, + length).ToLocalChecked(); } inline v8::Local OneByteString(v8::Isolate* isolate, @@ -166,8 +166,8 @@ inline v8::Local OneByteString(v8::Isolate* isolate, int length) { return v8::String::NewFromOneByte(isolate, reinterpret_cast(data), - v8::String::kNormalString, - length); + v8::NewStringType::kNormal, + length).ToLocalChecked(); } inline v8::Local OneByteString(v8::Isolate* isolate, @@ -175,8 +175,8 @@ inline v8::Local OneByteString(v8::Isolate* isolate, int length) { return v8::String::NewFromOneByte(isolate, reinterpret_cast(data), - v8::String::kNormalString, - length); + v8::NewStringType::kNormal, + length).ToLocalChecked(); } template