summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/BooleanObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/BooleanObject.h')
-rw-r--r--Source/JavaScriptCore/runtime/BooleanObject.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/JavaScriptCore/runtime/BooleanObject.h b/Source/JavaScriptCore/runtime/BooleanObject.h
index 6944db496..9e5aaf9b1 100644
--- a/Source/JavaScriptCore/runtime/BooleanObject.h
+++ b/Source/JavaScriptCore/runtime/BooleanObject.h
@@ -18,8 +18,7 @@
*
*/
-#ifndef BooleanObject_h
-#define BooleanObject_h
+#pragma once
#include "JSWrapperObject.h"
@@ -52,10 +51,8 @@ BooleanObject* asBooleanObject(JSValue);
inline BooleanObject* asBooleanObject(JSValue value)
{
- ASSERT(asObject(value)->inherits(BooleanObject::info()));
+ ASSERT(asObject(value)->inherits(*value.getObject()->vm(), BooleanObject::info()));
return static_cast<BooleanObject*>(asObject(value));
}
} // namespace JSC
-
-#endif // BooleanObject_h