Repository navigation
devtools: Implement eager evaluation - #47527
Conversation
| String, | ||
| PipelineId, | ||
| Option<String>, | ||
| bool, |
There was a problem hiding this comment.
Not related to this patch, but I do wonder if it would be helpful to turn some of this into enum structs instead of tuples, since they are getting quite big and it can be hard to know what each field represents. Specially something like SetBreakpoint.
There was a problem hiding this comment.
I agree, this is getting unwieldy
| try { | ||
| let completionValue; | ||
| if (frame) { | ||
| // <https://searchfox.org/firefox-main/source/js/src/doc/Debugger/Debugger.Frame.md#223> |
|
🔨 Triggering try run (#33376145790) for Linux (Devtools Tests) |
|
✨ Try run (#33376145790) succeeded. |
|
Added the source attribution :) |
|
The CI seems to be having a bad day? |
|
Yes, I tried restarting it a while ago and it doesn't seem to be working :( I'll ask |
Signed-off-by: Freya Arbjerg <[email protected]>
|
I cancelled the long running job, but Github didn't recognized that as 'failed to merge'. I had to trigger the workflow again by using the 'Update with rebase' option in the UI. It seems it is now added to the merge queue. |
Adds support for eager evaluation, with the console evaluating code without side-effects as the user is typing. In eager mode, evaluation is aborted upon hitting effectful bytecode or conditionally upon native calls. Known issues: - Calls to native code are currently assumed to always have side-effects (and therefore aborted), see the `eagerDbg.onNativeCall` hook - Firefox eagerly renders `SyntaxError`. Nominally these would be filtered out on the client, but this filter relies upon the `error` preview, which we don't support yet. This means that you get shown syntax errors as you type Testing: Covered by new python tests Fixes: Part of servo#39858 Signed-off-by: Freya Arbjerg <[email protected]>
Adds support for eager evaluation, with the console evaluating code without side-effects as the user is typing. In eager mode, evaluation is aborted upon hitting effectful bytecode or conditionally upon native calls. Known issues: - Calls to native code are currently assumed to always have side-effects (and therefore aborted), see the `eagerDbg.onNativeCall` hook - Firefox eagerly renders `SyntaxError`. Nominally these would be filtered out on the client, but this filter relies upon the `error` preview, which we don't support yet. This means that you get shown syntax errors as you type Testing: Covered by new python tests Fixes: Part of servo#39858 Signed-off-by: Freya Arbjerg <[email protected]>
Adds support for eager evaluation, with the console evaluating code without side-effects as the user is typing. In eager mode, evaluation is aborted upon hitting effectful bytecode or conditionally upon native calls.
Known issues:
eagerDbg.onNativeCallhookSyntaxError. Nominally these would be filtered out on the client, but this filter relies upon theerrorpreview, which we don't support yet. This means that you get shown syntax errors as you typeTesting: Covered by new python tests
Fixes: Part of #39858