From af9b54074e362a6ec0e0e09b4d86cf8bee6aab12 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Thu, 28 Apr 2016 13:03:38 -0700 Subject: [PATCH] pr feedback --- src/js_realm.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js_realm.hpp b/src/js_realm.hpp index 2a213af9..417364a5 100644 --- a/src/js_realm.hpp +++ b/src/js_realm.hpp @@ -245,7 +245,7 @@ inline typename T::Function Realm::create_constructor(ContextType ctx) { } template -void Realm::constructor(ContextType ctx, ObjectType this_object, size_t argc, const ValueType arguments[]) { +void Realm::constructor(ContextType ctx, ObjectType this_object, size_t argc, const ValueType arguments[]) { static const String path_string = "path"; static const String schema_string = "schema"; static const String schema_version_string = "schemaVersion"; @@ -291,7 +291,7 @@ void Realm::constructor(ContextType ctx, ObjectType this_object, size_t argc, ValueType migration_value = Object::get_property(ctx, object, migration_string); if (!Value::is_undefined(ctx, migration_value)) { - FunctionType migration_function = Value::validated_to_function(ctx, migration_value); + FunctionType migration_function = Value::validated_to_function(ctx, migration_value, "migration"); config.migration_function = [=](SharedRealm old_realm, SharedRealm realm) { ValueType arguments[2] = { create_object>(ctx, new SharedRealm(old_realm)),