All Projects → pvdz → recompiler

pvdz / recompiler

Licence: other
Recompile JavaScript without restarting your app

Programming Languages

javascript
184084 projects - #8 most used programming language

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);';).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].