Minor fixes in v8 javascript shell.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13794 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cda09239ad
commit
022c274256
2 changed files with 5 additions and 1 deletions
|
|
@ -552,7 +552,7 @@ ifeq (,$(V8))
|
||||||
else
|
else
|
||||||
JSEXE_SRC = $(JSEXE_SRC_DIR)/javascript.cxx $(JSEXE_SRC_DIR)/js_shell.cxx $(JSEXE_SRC_DIR)/v8_shell.cxx
|
JSEXE_SRC = $(JSEXE_SRC_DIR)/javascript.cxx $(JSEXE_SRC_DIR)/js_shell.cxx $(JSEXE_SRC_DIR)/v8_shell.cxx
|
||||||
JSEXE_OPTS = -v8
|
JSEXE_OPTS = -v8
|
||||||
JSEXE_FLAG = -DUSE_V8
|
JSEXE_FLAGS = -DUSE_V8
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -220,3 +220,7 @@ void V8Shell::ReportException(v8::TryCatch* try_catch) {
|
||||||
const char* V8Shell::ToCString(const v8::String::Utf8Value& value) {
|
const char* V8Shell::ToCString(const v8::String::Utf8Value& value) {
|
||||||
return *value ? *value : "<string conversion failed>";
|
return *value ? *value : "<string conversion failed>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JSShell* create_v8_shell() {
|
||||||
|
return new V8Shell();
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue