fix allocator loss when exec large script
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
#include "V8Executor.h"
|
||||
#include "JSValueHelper.h"
|
||||
|
||||
#include <QThread>
|
||||
|
||||
V8Executor::V8Executor() {
|
||||
std::unique_ptr<v8::Platform> platform = v8::platform::NewDefaultPlatform();
|
||||
V8Executor::V8Executor() : platform(v8::platform::NewDefaultPlatform()) {
|
||||
v8::V8::InitializePlatform(platform.get());
|
||||
v8::V8::Initialize();
|
||||
|
||||
|
@@ -10,6 +10,7 @@
|
||||
class V8Executor {
|
||||
|
||||
private:
|
||||
std::unique_ptr<v8::Platform> platform;
|
||||
v8::Isolate::CreateParams create_params;
|
||||
v8::Isolate *m_isolate;
|
||||
v8::Isolate::Scope *m_isolate_scope;
|
||||
|
Reference in New Issue
Block a user