Fix JSC compilation

This commit is contained in:
Thomas Goyne 2018-06-28 16:39:15 -07:00
parent 3c45c8a750
commit 45bb91b43c

View File

@ -23,11 +23,6 @@
namespace realm { namespace realm {
namespace js { namespace js {
template<>
inline JSValueRef jsc::Object::get_property(JSContextRef ctx, const JSObjectRef &object, StringData key) {
return get_property(ctx, object, jsc::String(key));
}
template<> template<>
inline JSValueRef jsc::Object::get_property(JSContextRef ctx, const JSObjectRef &object, const jsc::String &key) { inline JSValueRef jsc::Object::get_property(JSContextRef ctx, const JSObjectRef &object, const jsc::String &key) {
JSValueRef exception = nullptr; JSValueRef exception = nullptr;
@ -38,6 +33,11 @@ inline JSValueRef jsc::Object::get_property(JSContextRef ctx, const JSObjectRef
return value; return value;
} }
template<>
inline JSValueRef jsc::Object::get_property(JSContextRef ctx, const JSObjectRef &object, StringData key) {
return get_property(ctx, object, jsc::String(key));
}
template<> template<>
inline JSValueRef jsc::Object::get_property(JSContextRef ctx, const JSObjectRef &object, uint32_t index) { inline JSValueRef jsc::Object::get_property(JSContextRef ctx, const JSObjectRef &object, uint32_t index) {
JSValueRef exception = nullptr; JSValueRef exception = nullptr;