From 8e6d7304638fb1b7500f5ce8a5f2f4716ddbefed Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Sat, 8 Apr 2023 08:13:48 +0800 Subject: [PATCH] Issue #2197 - Follow-up: Remove GC debug assertion on sandbox There's no way to access GC from here. --- js/xpconnect/src/Sandbox.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/js/xpconnect/src/Sandbox.cpp b/js/xpconnect/src/Sandbox.cpp index c3b740e7e5..9e46f2dae0 100644 --- a/js/xpconnect/src/Sandbox.cpp +++ b/js/xpconnect/src/Sandbox.cpp @@ -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; }