summaryrefslogtreecommitdiffstats
path: root/platform/javascript/native/library_godot_eval.js
Commit message (Collapse)AuthorAgeFilesLines
* [HTML5] Libraries refactor for linting.Fabio Alessandrelli2020-11-211-85/+0
| | | | | | | | | | | | Initial work to make liniting easier. This includes: - Rename http_request.js to library_godot_http_request.js. - Rename externs.js to engine.externs.js. - New library_godot_runtime.js (GodotRuntime) wraps around emscripten functions. - Refactor of XMLHttpRequest handler in engine/preloader.js. - Few fixes to bugs spotted by early stage linting.
* Remove empty lines around braces with the formatting scriptAaron Franke2020-11-161-2/+0
|
* [HTML5] Port JavaScript inline code to libraries.Fabio Alessandrelli2020-11-101-0/+87
The API is implemented in javascript, and generates C functions that can be called from godot. This allows much cleaner code replacing all `EM_ASM` calls in our C++ code with plain C function calls. This also gets rid of few hacks and comes with few optimizations (e.g. custom cursor shapes should be much faster now).