runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 128 forks source link

Allow V8 flags to be configured at runtime #128

Closed facekapow closed 7 years ago

facekapow commented 7 years ago

This PR allows flags for V8 to be configured at runtime by the root project (where the initrd was packed) in /runtime.json, like:

{
  "v8": {
    "flags": "--my-v8-flags --expose-wasm --harmony --more"
  }
}

Hopefully, runtime.json will also contain flags for runtime.js in the future (e.g. enabling SMP).

On a minor note, the performance global has been added to the .eslintrc. Somehow it was overlooked in the code style pull request.

iefserge commented 7 years ago

This is amazing, looks great! 🎉 Let's merge this, then I'll tag a new release!