Some code that uses QuickJS to implement a sandbox wherein it's safe to execute untrusted JavaScript code.
It also demonstrates exposing functions from the native JS environment into the sandbox.
This example works in both node and the browser.
yarn install
yarn ts-node src/index.ts