diff --git a/js/src/jsgc.cpp b/js/src/jsgc.cpp index c849bacc8c..67459431f0 100644 --- a/js/src/jsgc.cpp +++ b/js/src/jsgc.cpp @@ -6580,8 +6580,8 @@ JS::GCCellPtr::outOfLineKind() const bool JS::GCCellPtr::mayBeOwnedByOtherRuntime() const { - return (is() && as().isPermanentAtom()) || - (is() && as().isWellKnownSymbol()); + return (is() && &as() && as().isPermanentAtom()) || + (is() && &as() && as().isWellKnownSymbol()); } #ifdef JSGC_HASH_TABLE_CHECKS