diff --git a/v8go.cc b/v8go.cc index 2bc8061c2..bc44cf0c3 100644 --- a/v8go.cc +++ b/v8go.cc @@ -1615,7 +1615,7 @@ ValuePtr FunctionSourceMapUrl(ValuePtr ptr) { /********** v8::V8 **********/ -const char* Version() { +const char* V8goVersion() { return V8::GetVersion(); } diff --git a/v8go.go b/v8go.go index 32990558a..47364a536 100644 --- a/v8go.go +++ b/v8go.go @@ -16,8 +16,8 @@ import ( ) // Version returns the version of the V8 Engine with the -v8go suffix -func Version() string { - return C.GoString(C.Version()) +func V8goVersion() string { + return C.GoString(C.V8goVersion()) } // SetFlags sets flags for V8. For possible flags: https://github.com/v8/v8/blob/master/src/flags/flag-definitions.h diff --git a/v8go.h b/v8go.h index afe39e105..3874330f4 100644 --- a/v8go.h +++ b/v8go.h @@ -298,7 +298,7 @@ extern RtnValue FunctionCall(ValuePtr ptr, RtnValue FunctionNewInstance(ValuePtr ptr, int argc, ValuePtr args[]); ValuePtr FunctionSourceMapUrl(ValuePtr ptr); -const char* Version(); +const char* V8goVersion(); extern void SetFlags(const char* flags); #ifdef __cplusplus