Skip to content

Commit b808c76

Browse files
author
Roland Eischer
committedSep 7, 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 a22d82a commit b808c76

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
@@ -68,12 +68,12 @@ struct convert<std::basic_string<Char, Traits, Alloc>>
6868

6969
if (sizeof(Char) == 1)
7070
{
71-
v8::String::Utf8Value const str(value);
71+
v8::String::Utf8Value const str(isolate, value);
7272
return from_type(reinterpret_cast<Char const*>(*str), str.length());
7373
}
7474
else
7575
{
76-
v8::String::Value const str(value);
76+
v8::String::Value const str(isolate, value);
7777
return from_type(reinterpret_cast<Char const*>(*str), str.length());
7878
}
7979
}

0 commit comments

Comments
 (0)