mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
be6339e5c2
This adds a new per-compartment implementation of breakpoints and reimplements the jsdbgapi.h "trap" entry points on top of it. Most jsdbgapi.h-using code will still work, but there is no longer a single runtime-wide trapList protected by a lock. Embeddings must follow the compartment rules for thread safety. JS_ClearAllTraps was removed, replaced by the per-compartment API JS_ClearAllTrapsForCompartment. The new implementation asserts that the PC passed to JS_SetTrap is actually an offset of an instruction, not just a random number. This caused quite a few tests to fail; fixes are included. Added Debug.Script.prototype.setBreakpoint, getBreakpoints, clearBreakpoint, and clearAllBreakpoints; and Debug.prototype.clearAllBreakpoints. In addition to tests targeting the new functionality, this changeset includes some tests for Debug.Script.prototype.getLineOffsets, which is hard to test without breakpoints. |
||
---|---|---|
.. | ||
examples | ||
ipc | ||
jetpack | ||
jsd | ||
src |