We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40f5d4d commit 786e16cCopy full SHA for 786e16c
1 file changed
src/JsEngine.cpp
@@ -47,18 +47,17 @@ namespace
47
{
48
std::string cmd = "--use_strict";
49
v8::V8::SetFlagsFromString(cmd.c_str(), cmd.length());
50
- platform = v8::platform::CreateDefaultPlatform();
51
- v8::V8::InitializePlatform(platform);
+ platform = v8::platform::NewDefaultPlatform();
+ v8::V8::InitializePlatform(platform.get());
52
v8::V8::Initialize();
53
}
54
55
~V8Initializer()
56
57
v8::V8::Dispose();
58
v8::V8::ShutdownPlatform();
59
- delete platform;
60
61
- v8::Platform* platform;
+ std::unique_ptr<v8::Platform> platform;
62
public:
63
static void Init()
64
0 commit comments