summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/db.cpp
AgeCommit message (Collapse)Author
2023-11-06SERVER-77345, valdiDBName moves to DatabaseName, changed ↵dominichernandez
DatabaseName::validDBName to isValid SERVER-77345: Split/Moved unit test from namespaceString to DatabaseNmae
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-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.
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez
2017-09-20SERVER-30769 Mongo shell throws 'exception during autocomplete'Mark Benvenuto
2017-08-17SERVER-30362 MozJS - implement resolve instead of getProperty for native typesMark Benvenuto
2017-04-14SERVER-28739 make the js scripting engine correctly verify that accessed ↵Esha Maharishi
collections are unsharded
2016-06-16SERVER-23103 Refactor access to haveLocalShardingInfoAndrew Morrow
2016-05-28SERVER-23971 Clang-Format codeMark Benvenuto
2016-03-29SERVER-22577 disallow creation of databases containing $ on mmapv1Robert Guo
2016-03-10SERVER-22359 Move ensureShardVersionOkOrThrow to CollectionShardingStateKaloian Manassiev
This ensures that we will have assertions in place for the correct locks being held.
2015-10-06SERVER-19977 DB::getProperty improvements in JSJason Carey
* Make the getProperty function more efficient by not reading out _fullName if we don't have an opcontext. * Delay grabbing the parent prototype * hasOwnField in places we can use it * Better Id management (less string conversion)
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-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-24SERVER-20019 SpiderMonkey performance improvement in shell by removing ↵Calvin Chan
pre-emptive string creation The current SpiderMonkey implementation preemptively generates a string for the IdWrapper of JSid. This id->std::string conversion is expensive and is quite often unnecessary. By delaying the creation of the string until after checking that it is absolutely necessary, we can improve SpiderMonkey performance on the shell by about 20%. Signed-off-by: Adam Midvidy <amidvidy@gmail.com>
2015-07-14SERVER-18531 Integrate SpiderMonkeyJason Carey
Provides SpiderMonkey 38.0.1esr as a JS engine for mongo and mongod.