Commit graph

2173 commits

Author SHA1 Message Date
c0d00bf179 Fixed Script.require 2023-01-15 20:44:03 +01:00
9b3b92d68f Fixed adding properties to methods 2023-01-15 15:58:21 +01:00
2409c9e2d9 Re-enabled script module cache creation 2023-01-14 19:46:49 +01:00
Dale Glass
0387b27fa2 Add missing override 2023-01-09 22:43:10 +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
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
473a412e36 Keep return script value 2023-01-09 20:51:03 +01:00
Dale Glass
58eb72325c Build fixes 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
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
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
1f2042f826 Type registeration fixes for scripting engine 2023-01-09 20:51:02 +01:00
39fe4b619b Fixes to problems with meta-types 2023-01-09 20:51:01 +01:00
d95aa44c5d Proper handling of enum classes for scripting 2023-01-09 20:51:01 +01:00
4a9c64d3a7 Attempt to debug broken enums in scripting 2023-01-09 20:51:01 +01:00
454e26a91b Fixed list item removal during access bug 2023-01-09 20:51:01 +01:00
bb13d1c028 Disallowed incorrect Vec3 to float cast in script engine 2023-01-09 20:51:01 +01:00
79f9ebf77e Fixed build error after rebase 2023-01-09 20:51:01 +01:00
Heather Anderson
03a97e5f36 dropped KALILA global script attributes 2023-01-09 20:51:01 +01:00
Heather Anderson
99f828d623 fix typo preventing methods from being discovered on scriptable objects when we're ignoring superclasses 2023-01-09 20:51:01 +01:00
Heather Anderson
72517798d6 identify the largest number of parameters any of our method overrides accept and discard script parameters beyond that count 2023-01-09 20:51:01 +01:00