Skip to content

Releases

v0.44.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 08:46

Full changelog ⇒ v0.44.0

Changed

  • Auto-bumped V8 to 15.7.112.43.

v0.43.0

Choose a tag to compare

@github-actions github-actions released this 04 Nov 08:23

Full changelog ⇒ v0.43.0

Changed

  • Auto-bumped V8 to 15.7.112.23.

v0.42.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 07:26

Full changelog ⇒ v0.42.0

Changed

  • Auto-bumped V8 to 15.6.75.27.

v0.41.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 07:12

Full changelog ⇒ v0.41.0

Changed

  • Auto-bumped V8 to 15.6.75.25.

v0.40.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 09:35

Full changelog ⇒ v0.40.0

Changed

  • Auto-bumped V8 to 15.6.75.19.

v0.39.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 06:11

Full changelog ⇒ v0.39.0

Changed

  • Auto-bumped V8 to 15.5.35.25.

v0.38.0

Choose a tag to compare

@github-actions github-actions released this 14 Oct 06:57

Full changelog ⇒ v0.38.0

Added

  • Add Windows amd64 support, requiring Go 1.27 and LLVM's MSVC-target clang with LLD. See the README for details. In #121.
  • Add CPUProfiler.Do to profile a function. It keeps the function on the OS thread V8 samples.
  • Add Isolate.SetPromiseRejectedCallback to be notified of unhandled promise rejections, and of rejection handlers added after the fact. Based on #108.
  • NewValue wraps Go pointers in V8 Externals, read back with Value.External, e.g. to wrap Go objects in JavaScript objects. The Go value is released when V8 garbage collects the External, or the Isolate is disposed. In #107.

Changed

  • Document that CPUProfiler.StartProfiling requires JavaScript to execute on the calling OS thread. V8 only samples that thread, so the profile silently missed samples when Go moved the goroutine to another thread.
  • Auto-bumped V8 to 15.5.35.23.

Fixed

  • CPUProfile.GetDuration was 1000 times too long, since V8's microseconds were read as milliseconds.
  • go mod vendor copies the V8 and libc++ header files, so vendored builds work again. In #116.

v0.37.0

Choose a tag to compare

@github-actions github-actions released this 02 Oct 08:58

Full changelog ⇒ v0.37.0

Changed

  • Auto-bumped V8 to 15.4.80.20.

v0.36.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 13:25

Full changelog ⇒ v0.36.0

Added

  • Add Isolate.WriteHeapSnapshot to write a heap snapshot for Chrome DevTools, and Isolate.LowMemoryNotification, based on #110.
  • Add ErrHeapLimitReached, matched by errors.Is when execution was terminated because the isolate reached its heap limit.
  • Add WithExceptionMessages and JSError.ExceptionMessage, returning the exception's script, line, columns, source line, and stack frames.

Changed

  • Pin depot_tools in V8 builds, upgrading it together with V8, instead of self-updating it during builds.
  • Link Clang's compiler-rt builtins on Linux, instead of relying on libgcc from GCC 12 or newer.
  • The error message when the heap limit is reached is now ExecutionTerminated: heap limit reached.
  • Building requires Clang 21 or newer, and CGO_CXXFLAGS=-nostdinc++, since V8 and v8go use Chromium's libc++. See the README. This already applied to v0.35.0.

Fixed

  • Linux libraries can be linked with glibc older than 2.38, e.g. on Debian 12, Ubuntu 22.04 and RHEL 9. V8 is now built against Chromium's Debian bullseye sysroot, making glibc 2.31 the minimum.
  • Restore the heap limit after reaching it terminated execution. It was doubled on every termination, so a reused isolate's limit grew without bound.

v0.35.0

Choose a tag to compare

@github-actions github-actions released this 30 Sep 13:30

Full changelog ⇒ v0.35.0

Changed

  • Auto-bumped V8 to 15.4.80.19.
⌂ 换网址