Commit Graph

12 Commits

Author SHA1 Message Date
m000z0rz 0e9f6f183b Allow undefined (optional) callbacks for Socket.connect and Socket.write 2020-06-17 18:41:49 -05:00
m000z0rz 4d546ee36b Add a strong backing reference cache, single use callback helper function, and use it on all non-hook callbacks passed to native code 2020-05-21 21:09:37 -05:00
Joe Eagar 82463fbdd8 Fixed a few bugs with the scripts system. I suspect there are more; the
threading code needs some refactoring.  List of changes:

* Script threads no longer call the debugger UI (e.g. refresh) nor do
  they call the script system's cleanup function
  (deleteStoppedInstances).
* Changed API.js Server.on method to queue calls to nativeAccept if .listen()
  hasn't been called yet (otherwise winsock gives errors).
* Added various paranoia thread locks.
* Forced termination of script threads now works.  The (commented) call
  to TerminateThread didn't work because getCurrentThread() doesn't return
  a "real" HANDLE.  The solution is to pass the result of getCurrentThread
  to DuplicateHandle to get a "real" handle.
2019-04-28 23:28:12 -07:00
LuigiBlood c714584fac Cause register access for scripts 2019-01-24 19:48:26 +01:00
shygoo 62baab2877 [Debugger] JS: Make debug.breakhere stable 2019-01-20 17:38:34 -06:00
shygoo d3aadf75cc [Debugger] Make AddressRange inclusive in the JS API 2018-12-09 18:44:30 -06:00
shygoo 1b34937307 [Debugger] Add events.ongprvalue to JS API 2018-12-09 15:24:11 -06:00
shygoo d7e02760b8 update api doc 2018-12-06 23:47:56 -06:00
shygoo 91ec99bd52 rename 2018-12-06 22:19:28 -06:00
shygoo 9f4323c06b add events.onexecvalue 2018-12-06 22:10:55 -06:00
shygoo d409dbc86e [Debugger] Add file system interface to the JS API 2018-02-18 15:37:03 -06:00
shygoo 47fd0632ff Add debug features 2017-08-18 00:08:22 -05:00