Skip to content

Commit 8de80ef

Browse files
author
Roland Eischer
committedOct 1, 2018
Fixed deprecated usage of v8::String::Value constructor
- v8 has declared the usage of the v8::String::Value constructor without isolate parameter as deprecated therefore add already available isolate as parameter
1 parent 930e498 commit 8de80ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎v8pp/convert.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ struct convert<std::basic_string<Char, Traits, Alloc>>
7373

7474
if (sizeof(Char) == 1)
7575
{
76-
v8::String::Utf8Value const str(value);
76+
v8::String::Utf8Value const str(isolate, value);
7777
return from_type(reinterpret_cast<Char const*>(*str), str.length());
7878
}
7979
else
8080
{
81-
v8::String::Value const str(value);
81+
v8::String::Value const str(isolate, value);
8282
return from_type(reinterpret_cast<Char const*>(*str), str.length());
8383
}
8484
}

0 commit comments

Comments
 (0)