Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Object.assign #1299

Open
MihaelIsaev opened this issue Sep 12, 2017 · 5 comments
Open

Support Object.assign #1299

MihaelIsaev opened this issue Sep 12, 2017 · 5 comments

Comments

@MihaelIsaev
Copy link

MihaelIsaev commented Sep 12, 2017

user pseudocode:

//sample myrealmObject { id: 111, name: 'John Doe' }
var myNewEmptyObject = {};
Object.assign(myNewEmptyObject, myrealmObject}
console.dir(myNewEmptyObject); //will return {}

Realm version: V1.11.0

@kneth
Copy link
Contributor

kneth commented Sep 12, 2017

@MihaelIsaev Thanks for reporting.

@baloran
Copy link

baloran commented Sep 18, 2017

Same here. :'(

@amereii
Copy link

amereii commented Apr 27, 2020

It works on Reamjs 3.4.1 but after upgrading to 5.0.3 it not works

@kneth
Copy link
Contributor

kneth commented Nov 11, 2021

I believe this is related to our lack of support for the spread operator.

@kraenhansen
Copy link
Member

This got fixed in v12 of the SDK.

@sync-by-unito sync-by-unito bot reopened this Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants