aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2023-08-10 23:46:06 +0200
committerGitHub <noreply@github.com>2023-08-10 21:46:06 +0000
commit450f8193a567ac6e5acd84e89fe73ed7ce137a78 (patch)
tree1c8418988d54fc4122d14218275927a523058413 /components/script_plugins
parent1f7f4cf2bedd1819ae129c2ac327425a756b5299 (diff)
downloadservo-450f8193a567ac6e5acd84e89fe73ed7ce137a78.tar.gz
servo-450f8193a567ac6e5acd84e89fe73ed7ce137a78.zip
Use mozjs tracing infrastructure (#29918)
* Update mozjs https://github.com/servo/mozjs/commit/64711ec2e6dc4595df691bffc7f1e5052ab86c8d also fixes https://github.com/servo/servo/issues/30043 * Move to mozjs Traceable and introduce CustomTraceable
Diffstat (limited to 'components/script_plugins')
-rw-r--r--components/script_plugins/trace_in_no_trace.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script_plugins/trace_in_no_trace.rs b/components/script_plugins/trace_in_no_trace.rs
index f713364458c..fa5b9ef0444 100644
--- a/components/script_plugins/trace_in_no_trace.rs
+++ b/components/script_plugins/trace_in_no_trace.rs
@@ -98,9 +98,7 @@ fn get_must_not_have_traceable(sym: &Symbols, attrs: &[Attribute]) -> Option<usi
fn is_jstraceable<'tcx>(cx: &LateContext<'tcx>, ty: ty::Ty<'tcx>) -> bool {
// TODO(sagudev): get_trait_def_id is expensive, use lazy and cache it for whole pass
- if let Some(trait_id) =
- get_trait_def_id(cx, &["script", "dom", "bindings", "trace", "JSTraceable"])
- {
+ if let Some(trait_id) = get_trait_def_id(cx, &["mozjs", "gc", "Traceable"]) {
return implements_trait(cx, ty, trait_id, &[]);
}
// when running tests