Minor cleanup in javascript shell implementation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13785 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0341e6b14c
commit
5fab9c8a38
2 changed files with 8 additions and 14 deletions
|
|
@ -57,11 +57,6 @@ protected:
|
|||
#error "implement dll loading"
|
||||
#endif
|
||||
|
||||
// Extracts a C string from a V8 Utf8Value.
|
||||
const char* V8Shell::ToCString(const v8::String::Utf8Value& value) {
|
||||
return *value ? *value : "<string conversion failed>";
|
||||
}
|
||||
|
||||
V8Shell::V8Shell()
|
||||
{
|
||||
}
|
||||
|
|
@ -220,3 +215,8 @@ void V8Shell::ReportException(v8::TryCatch* try_catch) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Extracts a C string from a V8 Utf8Value.
|
||||
const char* V8Shell::ToCString(const v8::String::Utf8Value& value) {
|
||||
return *value ? *value : "<string conversion failed>";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue