Skip to content
A Go API for the V8(precompiled) javascript engine.
C++ Go C Other
Branch: master
Clone or download
Pull request Compare This branch is 3 commits ahead of augustoroman:master.
Latest commit b256548 Oct 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libv8-darwin include compiled files Oct 18, 2019
libv8-linux include compiled files Oct 18, 2019
.gitignore add bazel Oct 19, 2019
BUILD add bazel Oct 19, 2019
LICENSE static file Oct 18, 2019
README.md static file Oct 18, 2019
WORKSPACE add bazel Oct 19, 2019
benchmarks_test.go static file Oct 18, 2019
doc.go static file Oct 18, 2019
example_bind_test.go static file Oct 18, 2019
examples_test.go static file Oct 18, 2019
go.mod static file Oct 18, 2019
kind.go static file Oct 18, 2019
kind_test.go static file Oct 18, 2019
setup.sh static file Oct 18, 2019
v8_c_bridge.cc Disable v8 stack traces to restore signal handling (augustoroman#40) Jan 30, 2019
v8_c_bridge.h Add PromiseInfo to retrieve details on a JS Promise. May 9, 2018
v8_create_darwin.go static file Oct 18, 2019
v8_create_linux.go static file Oct 18, 2019
v8_darwin.go static file Oct 18, 2019
v8_linux.go static file Oct 18, 2019
v8_test.go static file Oct 18, 2019

README.md

This is a modified clone of github.com/augustoroman/v8.

Where the original repository comes with two problems

  1. It does not work well with go module
  2. It includes manual setup script, which can be confusing when try to build this package with bazel

So. I did the following

  1. setup.sh it grabs compiled v8 from rubygems as mentioned here
  2. include the compiled library and headers as part of the repo, so you can do go get github.com/joesonw/js8
  3. It works for both amd64 and darwin64 since I grabbed both files.

Current V8 version si 6.3.292.48.1. I tried 6.7, It does not quite work without any further investigation.

You can’t perform that action at this time.