Recompile JavaScript without restarting your app
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
lib/zeparser2
slides
src
test
LICENSE
README.md
demo-fronteers.html
demo-jsconf.html
steps.txt

README.md

Real-time recompilation of running JavaScript

See build/editor-recompile.html to see how it works. You can edit on the left and it will update on the right. As long as you don't introduce new functions, it will probably work :)

Note that there are limitations. Main limitation is that you can't really introduce new functions unless it preceeds all other functions in the source code which means that it will never be re-evaluated. But if you do hand replacements through the console your could get away with it :) Anyways, new functions; no.

Other than that, I think it's very generic. Just check out the editor-recompile.html and play with it for yourself.

To see a break-down of what happens see src/demo.js (you can play with it through build/demo.html + the browser console, try $data[0].body = 'console.log("I've seen the "+world);';).