@@ -678,17 +678,31 @@ abbreviated as ES5, adds many new language features, including:
678
678
679
679
- getters and setters.
680
680
681
- With V8, MongoDB supports the latest standardized version of JavaScript
682
- with the following exceptions. The following features do not work as expected
683
- on documents returned from MongoDB queries:
681
+ With V8, MongoDB supports the ES5 implementation of Javascript with the
682
+ following exceptions.
684
683
685
- - ``Object.seal()``,
684
+ .. note::
685
+
686
+ The following features do not work as expected on documents
687
+ **returned from MongoDB queries**:
688
+
689
+ - ``Object.seal()`` throws an exception on documents returned from
690
+ MongoDB queries.
691
+
692
+ - ``Object.freeze()`` throws an exception on documents returned from
693
+ MongoDB queries.
694
+
695
+ - ``Object.preventExtensions()`` incorrectly allows the addition of
696
+ new properties on documents returned from MongoDB queries.
686
697
687
- - ``Object.freeze()``,
698
+ - ``enumerable`` properties, when added to documents returned from
699
+ MongoDB queries, are not saved during write operations.
688
700
689
- - ``Object.preventExtensions()``, and
701
+ See :issue:`SERVER-8216`, :issue:`SERVER-8223`,
702
+ :issue:`SERVER-8215`, and :issue:`SERVER-8214` for more information.
690
703
691
- - enumerable properties.
704
+ For objects that have not been returned from MongoDB queries, the
705
+ features work as expected.
692
706
693
707
Removed Non-Standard SpiderMonkey Features
694
708
``````````````````````````````````````````
0 commit comments