Fixes for v8 3.19.2 (0x031902)
This commit is contained in:
parent
a6ffb22a2a
commit
6fee208010
2 changed files with 18 additions and 5 deletions
|
|
@ -282,11 +282,11 @@ v8::Handle<v8::Value> V8Shell::Import(const std::string& module_path)
|
|||
}
|
||||
|
||||
SwigV8ReturnValue V8Shell::Print(const SwigV8Arguments& args) {
|
||||
SWIGV8_HANDLESCOPE();
|
||||
|
||||
bool first = true;
|
||||
for (int i = 0; i < args.Length(); i++) {
|
||||
|
||||
SWIGV8_HANDLESCOPE();
|
||||
|
||||
if (first) {
|
||||
first = false;
|
||||
} else {
|
||||
|
|
@ -325,6 +325,8 @@ SwigV8ReturnValue V8Shell::Require(const SwigV8Arguments& args) {
|
|||
}
|
||||
|
||||
SwigV8ReturnValue V8Shell::Quit(const SwigV8Arguments& args) {
|
||||
SWIGV8_HANDLESCOPE();
|
||||
|
||||
int exit_code = args[0]->Int32Value();
|
||||
fflush(stdout);
|
||||
fflush(stderr);
|
||||
|
|
@ -334,6 +336,7 @@ SwigV8ReturnValue V8Shell::Quit(const SwigV8Arguments& args) {
|
|||
}
|
||||
|
||||
SwigV8ReturnValue V8Shell::Version(const SwigV8Arguments& args) {
|
||||
SWIGV8_HANDLESCOPE();
|
||||
SWIGV8_RETURN(SWIGV8_STRING_NEW(v8::V8::GetVersion()));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue