-
Notifications
You must be signed in to change notification settings - Fork 585
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
Segmentation fault when passing unexpected user object to sync #1348
Comments
I imagine that parameter validation in JavaScript can be hard, while TypeScript we are stricter (see for example https://github.com/realm/realm-js/blob/2.0.x/lib/index.d.ts#L347). |
@kneth , @kraenhansen : is this still an outstanding issue? Should this be part of the Robustification effort? |
I just reproduced this crash with the latest Realm JS (v2.15.3) and updated the description to match this. As to @kneth's comment above, TypeScript parameter validation doesn't exist at runtime, so that won't help our users much. |
We should go through |
Released in v11.10.0 |
Goals
Passing unexpected arguments to the
Realm.open
, specifically passing a promise asuser
on thesync
config object.Expected Results
An error message describing the issue.
Actual Results
Steps to Reproduce
Create a new directory, initialize an npm package and install Realm JS
And then run the code sample.
Code Sample
Version of Realm and Tooling
The text was updated successfully, but these errors were encountered: