summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/nativefunction.cpp
AgeCommit message (Collapse)Author
2024-04-12SERVER-64574 Upgrade third_party/mozjs with ESR115.7Santiago Roche
GitOrigin-RevId: 3a3a9d26d8a167c98e72afde863784e9a894ee8d
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
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-04-09SERVER-40476 remove mongoutils::strBilly Donahue
Rename utils/mongoutils/str.h => utils/str.h Rename namespace mongoutils::str => str Rename mongo::strcasecmp => str::caseInsensitiveCompare.
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
2017-04-07SERVER-22520 Improve ASAN MozJS integrationJason Carey
ASAN has trouble dealing with the heap allocations SpiderMonkey produces, due to the storage format of those pointers (tagged punbox'd types). Keeping a side std::unordered_set<void*> which tracks allocations provides the reachability ASAN needs for a little bit of extra book keeping.
2015-10-06SERVER-19977 Use JS_NewArrayObject directlyJason Carey
Rather than creating objects with stringified integer keys, just create them directly with JS_NewArrayObject, which can take JS::CallArgs or JS::AutoValueVector's directly.
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-09-17SERVER-20080 Constrain ctor calls for JS typesJason Carey
Several types shouldn't be called as a ctor: * NativeFunction * Cursor * CursorHandle * NativeFunction This prevents them from being called as such.
2015-07-14SERVER-18531 Integrate SpiderMonkeyJason Carey
Provides SpiderMonkey 38.0.1esr as a JS engine for mongo and mongod.