Code used by to verify submissions.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

This is the verifier code used by the backend for

./verifier <wordlist> <program.js> [v8 options]

If you would like a verifier that doesn't require building v8 from source, try gh-verifier-lite -- it's not as effectively sandboxed, but if you're not actively trying to cheat you probably won't notice.

This verifier code builds against the v8 monolithic library, which you can create more or less like this (assuming you have the v8 source in $HOME/v8/v8 and depot_tools in $HOME/depot_tools):

#if you don't have depot_tools yet:
# git clone
# export PATH=$PATH:/path/to/depot_tools
# ... more here from the docs that I haven't gotten to yet

export PATH=$PATH:$HOME/depot_tools
cd v8/v8

#Use to figure out latest stable chrome version, grab related branch:
git checkout -b remotes/branch-heads/7.0

#Use this to start a build
tools/dev/ x64.release

#But then ^C it and edit out/x64.release/ to add:
use_custom_libcxx = false
v8_use_external_startup_data = false
v8_monolithic = true

#then do:
ninja -C out/x64.release v8_monolith

Now you should have an out/x64.release/obj/libv8_monolith.a; update the Makefile to point V8DIR to the right spot and you should be good to build.