Fixed for v8 3.27.34
This commit is contained in:
parent
eeb4b5497e
commit
a6ffb22a2a
1 changed files with 3 additions and 0 deletions
|
|
@ -119,6 +119,9 @@ V8Shell::~V8Shell() {}
|
||||||
bool V8Shell::RunScript(const std::string& scriptPath) {
|
bool V8Shell::RunScript(const std::string& scriptPath) {
|
||||||
std::string source = ReadFile(scriptPath);
|
std::string source = ReadFile(scriptPath);
|
||||||
|
|
||||||
|
v8::Isolate* isolate = v8::Isolate::New();
|
||||||
|
v8::Isolate::Scope isolate_scope(isolate);
|
||||||
|
|
||||||
SWIGV8_HANDLESCOPE();
|
SWIGV8_HANDLESCOPE();
|
||||||
|
|
||||||
SwigV8Context context = CreateShellContext();
|
SwigV8Context context = CreateShellContext();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue