Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3631

modifying a non object member of a read only js object fails silently

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: JavaScript
    • None

      See QA-19

      There may not be much we can do about this - just wanted to bring it up:

      • If I perform an operation on an array within a read only document, it fails silently rather than printing an error:
        obj.arr[0] = 1;
      • Same for other data types:
        obj.date.setSeconds( 1 );

            Assignee:
            antoine Antoine Girbal
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: