-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
CanGc fixes in errorevent.rs
#33960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CanGc fixes in errorevent.rs
#33960
Conversation
jdm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! Who knew we fired so many error events?
| line_number: u32, | ||
| fetch_options: ScriptFetchOptions, | ||
| script_base_url: ServoUrl, | ||
| can_gc: CanGc, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to allow this method to avoid the lint error:
error: this function has too many arguments (8/7)
--> components/script/dom/globalscope.rs:2633:5
|
2633 | / pub fn evaluate_script_on_global_with_result(
2634 | | &self,
2635 | | code: &SourceCode,
2636 | | filename: &str,
... |
2641 | | can_gc: CanGc,
2642 | | ) -> bool {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll open a new PR for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it can be addressed in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, on it!
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Head branch was pushed to by a user without write access
Replaces CanGc::note() calls with arguments passed by callers in
components/script/dom/errorevent.rs./mach build -ddoes not report any errors./mach test-tidydoes not report any errors