From 45bb91b43c7ce8093697c6e0d0e003d6b47137b3 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 28 Jun 2018 16:39:15 -0700 Subject: [PATCH] Fix JSC compilation --- src/jsc/jsc_object.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/jsc/jsc_object.hpp b/src/jsc/jsc_object.hpp index 0441aa92..6cf3c080 100644 --- a/src/jsc/jsc_object.hpp +++ b/src/jsc/jsc_object.hpp @@ -23,11 +23,6 @@ namespace realm { 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<> inline JSValueRef jsc::Object::get_property(JSContextRef ctx, const JSObjectRef &object, const jsc::String &key) { JSValueRef exception = nullptr; @@ -38,6 +33,11 @@ inline JSValueRef jsc::Object::get_property(JSContextRef ctx, const JSObjectRef 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<> inline JSValueRef jsc::Object::get_property(JSContextRef ctx, const JSObjectRef &object, uint32_t index) { JSValueRef exception = nullptr;