Issue #2197 - Follow-up: Remove GC debug assertion on sandbox

There's no way to access GC from here.
This commit is contained in:
FranklinDM 2023-04-08 08:13:48 +08:00 committed by roytam1
commit 8e6d730463

View file

@ -352,8 +352,6 @@ static bool SandboxStructuredClone(JSContext* cx, unsigned argc, Value* vp) {
return false;
}
MOZ_ASSERT_IF(result.isGCThing(),
!JS::GCThingIsMarkedGray(result.toGCCellPtr()));
args.rval().set(result);
return true;
}