Commit graph

86030 commits

Author SHA1 Message Date
Dale Glass
b69e1642bf Add missing require test 2023-01-13 18:53:21 +01:00
Dale Glass
0387b27fa2 Add missing override 2023-01-09 22:43:10 +01:00
Dale Glass
f5c8be68d1 Add missing dependency on script-engine 2023-01-09 22:38:44 +01:00
Dale Glass
5cd81418e2 Add hasProperty for checking whether a property exists 2023-01-09 22:21:21 +01:00
6f2fc06846 Added debug function to list object members 2023-01-09 20:53:31 +01:00
ffb82f2ae0 Further work on evaluateInClosure 2023-01-09 20:53:31 +01:00
a5b51fccbc Fixed evaluateInClosure and other V8 stuff 2023-01-09 20:53:31 +01:00
0928c67878 Some V8 debuging messages 2023-01-09 20:53:31 +01:00
52fa9caae4 Fixed getting current script name 2023-01-09 20:53:31 +01:00
f243afd90f Fixed object deletion event, temporarily disabled watchdog log commands to make reading logs easier 2023-01-09 20:53:31 +01:00
56ebe09998 V8 fixes, including making debug console work 2023-01-09 20:53:31 +01:00
2ec7ffeaff More fixes for V8 2023-01-09 20:53:31 +01:00
037011b2fe Fixed setting properties of ScriptObjectV8Proxy 2023-01-09 20:53:31 +01:00
4e4e695ca4 Fixed vector math, added simple test for it 2023-01-09 20:53:31 +01:00
a6de0f06d7 Fixed method calls 2023-01-09 20:53:31 +01:00
Dale Glass
d2effdf420 Reduce V8 stack size to 256K. Otherwise the interface can be crashed with a stack overflow in a script. 2023-01-09 20:53:31 +01:00
Dale Glass
76349a9590 Initial support for a directory with test scripts
This way there's no need to rebuild the test every time.
Script dir is symlinked from the source into the binary dir.
2023-01-09 20:53:24 +01:00
639e14fd94 Fixed C++ function calls for V8 2023-01-09 20:51:03 +01:00
bce869e456 Added V8 Locker for moving script engine to a new thread 2023-01-09 20:51:03 +01:00
4a18ca733b Added simple compile test function 2023-01-09 20:51:03 +01:00
Dale Glass
91ef4e83d7 Fix animation tests build 2023-01-09 20:51:03 +01:00
Dale Glass
473a412e36 Keep return script value 2023-01-09 20:51:03 +01:00
Dale Glass
3b1501051e Add CMakeLists 2023-01-09 20:51:03 +01:00
Dale Glass
58eb72325c Build fixes 2023-01-09 20:51:03 +01:00
Dale Glass
87ec151cb7 Partial changes 2023-01-09 20:51:03 +01:00
Dale Glass
0793cd69f7 Initial scripting engine testing code 2023-01-09 20:51:03 +01:00
Dale Glass
858f47ea2a Fix tabulation 2023-01-09 20:51:03 +01:00
Dale Glass
71bfa09c33 Use sampler library if present 2023-01-09 20:51:03 +01:00
Dale Glass
0afa1f8a2f Remove requirement for sampler library
Library is not present on some distributions, like Fedora, and not used in the code currently
2023-01-09 20:51:03 +01:00
cb1044ed6a Script engine new function fixes 2023-01-09 20:51:03 +01:00
bcac3dbe55 Added context scopes 2023-01-09 20:51:03 +01:00
281874e32f Add V8 handle scopes 2023-01-09 20:51:03 +01:00
97459359de Updated script isolation files 2023-01-09 20:51:03 +01:00
fcd63b9f35 Initial V8 support, not working yet 2023-01-09 20:51:02 +01:00
309dd30107 Initial cmake files for V8 2023-01-09 20:51:02 +01:00
f4f222d22c Added V8 vcpkg files 2023-01-09 20:51:02 +01:00
199e179b11 Replaced withReadLock with resultWithReadLock in ScriptSignalQtProxy::findConnection 2023-01-09 20:51:02 +01:00
19e5b099fb Fixes for code review 2023-01-09 20:51:02 +01:00
4a54a8025f Fix build error on Windows 2023-01-09 20:51:02 +01:00
38e7b5a8d2 Added scoring system for determining overloaded function to call 2023-01-09 20:51:02 +01:00
a14a1d384f Fixed clearTimeout behavior when called with expired timer 2023-01-09 20:51:02 +01:00
3f25799826 Added QTimer* script data type and some nullptr checks 2023-01-09 20:51:02 +01:00
aee6ac6b77 Fixed simplifiedNametag 2023-01-09 20:51:02 +01:00
9f3a79f597 Fix build error on MacOS 2023-01-09 20:51:02 +01:00
cd086b1ea5 Fix for crash on deleting caches 2023-01-09 20:51:02 +01:00
9276beae7e Fixes to scripting-related warnings (lambdas) 2023-01-09 20:51:02 +01:00
1110aac9d9 Fixes to most scripting-related warnings 2023-01-09 20:51:02 +01:00
0e0c2695bf Forgot to add ResourceScriptingInterface.cpp before 2023-01-09 20:51:02 +01:00
8ddfdacd2b Replaced regular mutex with a read write one to improve performance 2023-01-09 20:51:02 +01:00
3405b14ece Fixed enums in scripting engine 2023-01-09 20:51:02 +01:00