resolve issue #36074 new_js_regex and matches_js_regex need a CanGc argument (#36111)

* new_js_regex and matches_js_regex need a CanGc argument

Signed-off-by: dericko681 <abonghoderick@gmail.com>

* new_js_regex and matches_js_regex need a CanGc argument

Signed-off-by: dericko681 <abonghoderick@gmail.com>

* edit Propagate CanGc arguments through new_js_regex and matches_js_regex

Signed-off-by: dericko681 <abonghoderick@gmail.com>

* Propagate CanGc arguments through new_js_regex and matches_js_regex

Signed-off-by: dericko681 <abonghoderick@gmail.com>

* Propagate CanGc arguments through new_js_regex and matches_js_regex

Signed-off-by: dericko681 <abonghoderick@gmail.com>

* Propagate CanGc arguments through new_js_regex and matches_js_regex

Signed-off-by: dericko681 <abonghoderick@gmail.com>

---------

Signed-off-by: dericko681 <abonghoderick@gmail.com>
This commit is contained in:
Kunga Derick Abongho 2025-03-29 14:09:56 +01:00 committed by GitHub
parent b5c8164e99
commit 83da63f638
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
60 changed files with 600 additions and 435 deletions

View file

@ -884,7 +884,7 @@ impl RangeMethods<crate::DomTypeHolder> for Range {
};
// Step 9.
node.remove_self();
node.remove_self(can_gc);
// Step 10.
let new_offset = reference_node
@ -900,7 +900,7 @@ impl RangeMethods<crate::DomTypeHolder> for Range {
};
// Step 12.
Node::pre_insert(node, &parent, reference_node.as_deref())?;
Node::pre_insert(node, &parent, reference_node.as_deref(), can_gc)?;
// Step 13.
if self.collapsed() {
@ -980,7 +980,7 @@ impl RangeMethods<crate::DomTypeHolder> for Range {
// Step 8.
for child in &*contained_children {
child.remove_self();
child.remove_self(CanGc::note());
}
// Step 9.
@ -1023,7 +1023,7 @@ impl RangeMethods<crate::DomTypeHolder> for Range {
let fragment = self.ExtractContents(can_gc)?;
// Step 4.
Node::replace_all(None, new_parent);
Node::replace_all(None, new_parent, can_gc);
// Step 5.
self.InsertNode(new_parent, can_gc)?;