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

Undefined Optional Property returns Null instead of Undefined

      How frequently does the bug occur?

      All the time

      Description

      When attempting to read an optional property that is not set, null is returned. I would expect this to act like an object and return undefined if the property is not set.

      Stacktrace & log output

      No response

      Can you reproduce the bug?

      Yes, always

      Reproduction Steps

      console.log an unset optional property of any object. It will return null

      Version

      10.10.0

      What SDK flavour are you using?

      Local Database only

      Are you using encryption?

      No, not using encryption

      Platform OS and version(s)

      Node, macos

      Build environment

      Which debugger for React Native: ..

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.meyer@mongodb.com Andrew Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: