Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-186

Segmentation fault when passing unexpected user object to sync

      Goals

      Passing unexpected arguments to the Realm.open, specifically passing a promise as user on the sync config object.

      Expected Results

      An error message describing the issue.

      Actual Results

       Segmentation fault: 11
      

      Steps to Reproduce

      Create a new directory, initialize an npm package and install Realm JS

      npm init && npm install realm
      

      And then run the code sample.

      Code Sample

      const Realm = require("realm");
      
      Realm.open({
        sync: {
          user: Promise.resolve()
        }
      });
      

      Version of Realm and Tooling

      • Realm JS SDK Version: 2.15.3
      • Node or React Native: Node v8.4.0
      • Client OS & Version: Mac
      • Which debugger for React Native: None

            Assignee:
            kenneth.geisshirt@mongodb.com Kenneth Geisshirt (Inactive)
            Reporter:
            kraen.hansen@mongodb.com Kræn Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: