You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Execute toJSON on any realm Object using release 10.6.0.
Code Sample
var newmsg = draft.toJSON();
Probable Cause
File realm\lib\extensions.js was modified in version 10.6.0.
In line 112, a new comparsion was added. But realmConstructor.Dictionary is undefined.
Therefore, instanceof throws an exception.
Version of Realm and Tooling
Realm JS SDK Version: 10.6.0
Node or React Native: React Native
Client OS & Version: Android 10
Which debugger for React Native: Chrome debugger
The text was updated successfully, but these errors were encountered:
Goals
Execute successfully method toJSON on a realm object to obtain a copy of it.
Expected Results
A copy of the realm object
Actual Results
I got an exception: Right-hand side of 'instanceof' is not an object
Stack trace:
at http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.marcelo.thanmail&modulesOnly=false&runModule=true:162232:28
at Array.forEach ()
at RealmObject.value (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=XXX&modulesOnly=false&runModule=true:162223:76)
at Function.pendingDraft (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=XXX&modulesOnly=false&runModule=true:150064:32)
at parseOneMessage$ (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=XXX&modulesOnly=false&runModule=true:166918:32)
at tryCatch (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=XXX&modulesOnly=false&runModule=true:1480:19)
at Generator.invoke [as _invoke] (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=XXX&modulesOnly=false&runModule=true:1656:24)
at Generator.prototype. [as next] (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=XXX&modulesOnly=false&runModule=true:1523:23)
at tryCatch (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=XXX&modulesOnly=false&runModule=true:1480:19)
at invoke (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=XXX&modulesOnly=false&runModule=true:1556:22)
Steps to Reproduce
Execute toJSON on any realm Object using release 10.6.0.
Code Sample
var newmsg = draft.toJSON();
Probable Cause
File realm\lib\extensions.js was modified in version 10.6.0.
In line 112, a new comparsion was added. But realmConstructor.Dictionary is undefined.
Therefore, instanceof throws an exception.
Version of Realm and Tooling
The text was updated successfully, but these errors were encountered: