diff --git a/isolate.go b/isolate.go index 661fbec05..e22759702 100644 --- a/isolate.go +++ b/isolate.go @@ -53,7 +53,7 @@ type HeapStatistics struct { // Context, rather than creating a new default Isolate. func NewIsolate() *Isolate { v8once.Do(func() { - C.Init() + C.V8goInit() }) iso := &Isolate{ ptr: C.NewIsolate(), diff --git a/v8go.cc b/v8go.cc index 97390883e..2bc8061c2 100644 --- a/v8go.cc +++ b/v8go.cc @@ -143,7 +143,7 @@ extern "C" { ISOLATE_SCOPE(iso); \ m_ctx* ctx = isolateInternalContext(iso); -void Init() { +void V8goInit() { #ifdef _WIN32 V8::InitializeExternalStartupData("."); #endif diff --git a/v8go.h b/v8go.h index 7acaf0425..afe39e105 100644 --- a/v8go.h +++ b/v8go.h @@ -131,7 +131,7 @@ typedef struct { int sign_bit; } ValueBigInt; -extern void Init(); +extern void V8goInit(); extern IsolatePtr NewIsolate(); extern void IsolatePerformMicrotaskCheckpoint(IsolatePtr ptr); extern void IsolateDispose(IsolatePtr ptr);