0ad/source/scriptinterface/tests
phosit c6d42ebbd5 Support JavaScript modules
- With modules JavaScript code can be split up into multiple files. We
	already implemented such a mechanism (`Engine.LoadLibrary`) in
	multiple parts of the engine. The advantage of using modules is
	that it's standart (JS-devs are familiar with it) and it doesn't
	has to be implemented multiple times.
	Note that `Engine.LoadLibrary` loads all files in a directory
	while the new `import` only loads one file.

- With modules seemingly global variables are local to that
	script/module. We already implemented such a mechanism
	(`ScriptInterface::LoadScript`).
2025-06-06 17:36:35 +02:00
..
test_FunctionWrapper.h Add a class to register stateful callbacks to JS 2025-04-17 15:02:05 +02:00
test_Module.h Support JavaScript modules 2025-06-06 17:36:35 +02:00
test_Promises.h Log rejected promises 2024-07-22 08:40:33 +00:00
test_ScriptConversions.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
test_ScriptInterface.h Refactor freezing of JS objects 2024-12-05 17:49:16 +01:00