summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/objectwrapper.cpp
AgeCommit message (Collapse)Author
2024-04-12SERVER-64574 Upgrade third_party/mozjs with ESR115.7Santiago Roche
GitOrigin-RevId: 3a3a9d26d8a167c98e72afde863784e9a894ee8d
2024-03-01SERVER-86818 Rename our custom Map implementation to BSONAwareMapMatt Broadstone
GitOrigin-RevId: bcf8bc34491d05927cd3574c3ee0ee8f7657ca2b
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
2022-03-26SERVER-61234 Expand support for $function returning scalar BSON valuesJustin Seyster
2022-03-07SERVER-61008 Upgrade vendorized mozjs to esr91.3Justin Seyster
Co-authored-by: Mohammad Dashti <mdashti@gmail.com>
2019-07-27SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.1
2019-02-26SERVER-39521 Don't skip _id in ObjWrapper::toBSONJason Carey
We incorrectly checked for _id with alreadyHasOwnField, instead of hasOwnField, which caused us to miss _id fields set from c++.
2019-02-13SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue
Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
2019-01-30SERVER-29286 import and use mozjs-60Gabriel Russell
2019-01-29Revert "SERVER-29286 import and use mozjs-60"Gabriel Russell
This reverts commit a3d232b697dfc7c8833fc1855abbc190fe0d5970.
2019-01-29SERVER-29286 import and use mozjs-60Gabriel Russell
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez
2018-02-01SERVER-32072 Always roundtrip dbrefs in the shellJason Carey
dbrefs in the shell can see silent casts from int -> float due to a lack of special case logic that regular bson objects receive. For a fix, hook up the special lookup routines in js bsoninfo type into the js dbrefinfo types.
2018-01-19SERVER-32239 Lossless status throwing in JSJason Carey
Enable throwing of status without conversion to error reports in spidermonkey. This will enable throwing of sidecars and other rich data through js land.
2016-08-18SERVER-22382 allow mongo --host to take uriMatt Cotter
2016-08-08SERVER-25482 Coverity analysis defect 99830: Unchecked return valueWaley Chen
2016-08-04SERVER-22053 Insertion of Array with undefined/null componentsWaley Chen
2016-05-28SERVER-23971 Clang-Format codeMark Benvenuto
2016-05-10SERVER-24054 JS segfault on load of certain nansJason Carey
2016-05-03SERVER-23548 Remove VS2013 workaroundsMark Benvenuto
2016-04-21SERVER-23358 SpiderMonkey 45.0.2 ESR MongoDB & Build IntegrationMark Benvenuto
2015-12-21SERVER-21957 Don't destroy builder while still in useAndrew Morrow
2015-10-06SERVER-19977 JS ObjectWrapper improvementsJason Carey
* hasOwnField, which doesn't do prototype traversal the way hasField does. * enumerate can bail early based on the callbacks return value
2015-10-06SERVER-19977 Offer a stack based JSStringWrapperJason Carey
Small string optimization for encoding utf8 strings from JS strings on the stack. Additions to the api to use on stack buffers.
2015-10-06SERVER-19977 Intern JS StringsJason Carey
Rather than supplying const char*'s throughout our use of the MozJS api, intern the strings and root their associated ids (to save on string parsing).
2015-10-06SERVER-20564 no default getOwned for BSON in JSJason Carey
2015-09-21SERVER-19607 no recursion in JS -> BSON conversionJason Carey
Replace functional recursion in javascript object to bson conversion with an explicit stack to minimize the memory cost of processing very deep / cyclical objects. This prevents stack overflows on debug and non-optimized builds on some platforms.
2015-09-17SERVER-20375 Constrain JS method thisvJason Carey
This constrains universal access to wraptype methods by providing a JS_ATTACH_JS_CONSTRAINED_METHOD() macro which allows for a list of types that are allowed to call said method. In this way we can lock down all methods without having to add uasserts to each individual method body.
2015-08-13SERVER-19627 Add Decimal128 type support to mongo shellRaymond Jacobson
2015-07-28SERVER-19597 originalBSON can be called on protoJason Carey
originalBSON can be called on the BSON prototype, which returns a nullptr for the bson out param and a !altered. We have to check !altered && originalBSON to avoid nullptr dereferences.
2015-07-14SERVER-18531 Integrate SpiderMonkeyJason Carey
Provides SpiderMonkey 38.0.1esr as a JS engine for mongo and mongod.