summaryrefslogtreecommitdiffstats
path: root/js/src/gc/Marking.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/gc/Marking.h')
-rw-r--r--js/src/gc/Marking.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/gc/Marking.h b/js/src/gc/Marking.h
index ec4c69a2f..73f63d804 100644
--- a/js/src/gc/Marking.h
+++ b/js/src/gc/Marking.h
@@ -404,7 +404,7 @@ IsAboutToBeFinalizedDuringSweep(TenuredCell& tenured);
inline Cell*
ToMarkable(const Value& v)
{
- if (v.isMarkable())
+ if (v.isGCThing())
return (Cell*)v.toGCThing();
return nullptr;
}