Skip to content

script: propagate &mut JSContext in DebuggerGlobalScope::fire_eval#44477

Merged
Gae24 merged 4 commits into
servo:mainfrom
elomscansio:port-DebuggerGlobalScope-fire_eval
Apr 24, 2026
Merged

script: propagate &mut JSContext in DebuggerGlobalScope::fire_eval#44477
Gae24 merged 4 commits into
servo:mainfrom
elomscansio:port-DebuggerGlobalScope-fire_eval

Conversation

@elomscansio

Copy link
Copy Markdown
Contributor

Propagate &mut JSContext in DebuggerGlobalScope::fire_eval

Testing: Successful build is enough
Fixes: Part of #42638

Opened to reduces the complexity of #44254

Signed-off-by: Emmanuel Paul Elom <elomemmanuel007@gmail.com>
@elomscansio elomscansio requested a review from gterzian as a code owner April 24, 2026 10:27
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 24, 2026
Comment thread components/script/dom/debugger/debuggerglobalscope.rs Outdated
Comment thread components/script/dom/debugger/debuggerglobalscope.rs Outdated
@servo-highfive servo-highfive added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Apr 24, 2026
…ported

Co-authored-by: Gae24 <96017547+Gae24@users.noreply.github.com>
Signed-off-by: elomscansio <163124154+elomscansio@users.noreply.github.com>
@servo-highfive servo-highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Apr 24, 2026
Co-authored-by: Gae24 <96017547+Gae24@users.noreply.github.com>
Signed-off-by: elomscansio <163124154+elomscansio@users.noreply.github.com>
@elomscansio elomscansio requested a review from Gae24 April 24, 2026 12:59
let _realm = enter_realm(self);
let debuggee_pipeline_id =
crate::dom::pipelineid::PipelineId::new(self.upcast(), debuggee_pipeline_id, can_gc);
enter_auto_realm(cx, self);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually you can do

        let mut realm = enter_auto_realm(cx, self);
        let cx = &mut realm;

The same for the other PR:

@servo-highfive servo-highfive added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Apr 24, 2026
…time error

Signed-off-by: Emmanuel Paul Elom <elomemmanuel007@gmail.com>
@elomscansio elomscansio force-pushed the port-DebuggerGlobalScope-fire_eval branch from a8f1e47 to 522b844 Compare April 24, 2026 14:42
@servo-highfive servo-highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Apr 24, 2026
@elomscansio elomscansio requested a review from Gae24 April 24, 2026 14:43
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Apr 24, 2026
@Gae24 Gae24 added this pull request to the merge queue Apr 24, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 24, 2026
Merged via the queue into servo:main with commit 93ae710 Apr 24, 2026
33 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants