summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/runtime/Protect.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/runtime/Protect.h')
-rw-r--r--JavaScriptCore/runtime/Protect.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/JavaScriptCore/runtime/Protect.h b/JavaScriptCore/runtime/Protect.h
index a0d5443..06cf97f 100644
--- a/JavaScriptCore/runtime/Protect.h
+++ b/JavaScriptCore/runtime/Protect.h
@@ -52,13 +52,13 @@ namespace JSC {
inline void gcProtect(JSValue value)
{
if (value && value.isCell())
- gcProtect(asCell(value));
+ gcProtect(value.asCell());
}
inline void gcUnprotect(JSValue value)
{
if (value && value.isCell())
- gcUnprotect(asCell(value));
+ gcUnprotect(value.asCell());
}
// FIXME: Share more code with RefPtr template? The only differences are the ref/deref operation