summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2023-04-08 08:13:48 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2023-04-08 08:16:11 +0800
commitae19a0513ee353dbdee92de16fc7c1e83516a40f (patch)
treeca8bfa8e868c64e8d689357018e960647a633c9b
parentc660c6f699d69dbf5adaaa833b78ce9a57affeff (diff)
downloaduxp-ae19a0513ee353dbdee92de16fc7c1e83516a40f.tar.gz
Issue #2197 - Follow-up: Remove GC debug assertion on sandbox
There's no way to access GC from here.
-rw-r--r--js/xpconnect/src/Sandbox.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/js/xpconnect/src/Sandbox.cpp b/js/xpconnect/src/Sandbox.cpp
index 3c2145a1f7..a1d0292e76 100644
--- a/js/xpconnect/src/Sandbox.cpp
+++ b/js/xpconnect/src/Sandbox.cpp
@@ -348,8 +348,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;
}