summaryrefslogtreecommitdiff
path: root/js/src/vm/String.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/vm/String.h')
-rw-r--r--js/src/vm/String.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/vm/String.h b/js/src/vm/String.h
index 0937ac24d..4c43439cd 100644
--- a/js/src/vm/String.h
+++ b/js/src/vm/String.h
@@ -521,7 +521,7 @@ class JSString : public js::gc::TenuredCell
}
static MOZ_ALWAYS_INLINE void writeBarrierPre(JSString* thing) {
- if (isNullLike(thing) || thing->isPermanentAtom())
+ if (!thing || thing->isPermanentAtom())
return;
TenuredCell::writeBarrierPre(thing);