Skip to content

Commit

Permalink
Fixes for V8 API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tommie committed Jul 25, 2024
1 parent 8e5f358 commit 74c6d4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ package v8go

//go:generate clang-format -i --verbose -style=Chromium v8go.h v8go.cc

// #cgo CXXFLAGS: -fno-rtti -fPIC -std=c++17 -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -I${SRCDIR}/deps/include -Wall -DV8_ENABLE_SANDBOX
// #cgo CXXFLAGS: -fno-rtti -fPIC -std=c++20 -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -I${SRCDIR}/deps/include -Wall -DV8_ENABLE_SANDBOX
import "C"
4 changes: 2 additions & 2 deletions v8go.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ RtnUnboundScript IsolateCompileUnboundScript(IsolatePtr iso,
opts.cachedData.length);
}

ScriptOrigin script_origin(iso, ogn);
ScriptOrigin script_origin(ogn);

ScriptCompiler::Source source(src, script_origin, cached_data);

Expand Down Expand Up @@ -670,7 +670,7 @@ RtnValue RunScript(ContextPtr ctx, const char* source, const char* origin) {
return rtn;
}

ScriptOrigin script_origin(iso, ogn);
ScriptOrigin script_origin(ogn);
Local<Script> script;
if (!Script::Compile(local_ctx, src, &script_origin).ToLocal(&script)) {
rtn.error = ExceptionError(try_catch, iso, local_ctx);
Expand Down

0 comments on commit 74c6d4b

Please sign in to comment.