summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/valuewriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-61234 Expand support for $function returning scalar BSON valuesJustin Seyster2022-03-261-15/+97
|
* SERVER-61008 Upgrade vendorized mozjs to esr91.3Justin Seyster2022-03-071-9/+13
| | | | Co-authored-by: Mohammad Dashti <mdashti@gmail.com>
* SERVER-56777 Fix UB in valuewriterIan Boros2021-05-101-2/+6
|
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-271-2/+1
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-21/+23
|
* SERVER-26343 DBPointer.prototype -> bson crashesJason Carey2016-10-051-0/+4
| | | | | DBPointer's prototype isn't serializable and triggers a bad code path in oid. Let's guard against that route.
* SERVER-25539 Validate BinData private objectMark Benvenuto2016-08-151-0/+2
|
* SERVER-23626 Function.prototype isn't treated as BSON type CodeWaley Chen2016-07-201-4/+9
|
* SERVER-24276 Add decimal test suites from driver specsVincent Do2016-06-081-11/+14
|
* SERVER-23703 Make NumberDecimal accepts only valid stringsVincent Do2016-05-271-3/+14
|
* SERVER-23358 SpiderMonkey 45.0.2 ESR MongoDB & Build IntegrationMark Benvenuto2016-04-211-5/+36
|
* SERVER-19703 Add a few new Decimal128 methods/constructors for usage by ↵Geert Bosch2016-04-121-1/+2
| | | | | | | KeyString Make conversions explicit and allow control over precision in conversion from double. Update uses to the new interface.
* SERVER-22686 Replace unsafe static_cast with call to representAssamantharitter2016-03-101-4/+5
|
* SERVER-22693 Avoid unsafe cast to long long in ValueWritersamantharitter2016-02-261-1/+1
|
* SERVER-9131 Fix lint failed checksKaloian Manassiev2016-02-181-7/+6
|
* SERVER-9131 prevent automatic function marshalling in shellrahuldhodapkar2016-02-171-0/+21
| | | | add shell flag --enableJavaScriptProtection and server setParameter javascriptProtection
* SERVER-10568 SafeNum should be written in terms of explicitly sized typesWaley2016-02-081-1/+1
|
* SERVER-19977 Optimize JS -> BSON conversionJason Carey2015-10-061-69/+78
| | | | | | | Rather than a single tree of conditionals for object -> bson conversion, only run checks against our types if they actually have a custom jsclass and only check for array/date/regex if they're standard types.
* SERVER-19977 Offer a stack based JSStringWrapperJason Carey2015-10-061-2/+9
| | | | | Small string optimization for encoding utf8 strings from JS strings on the stack. Additions to the api to use on stack buffers.
* SERVER-19607 no recursion in JS -> BSON conversionJason Carey2015-09-211-81/+123
| | | | | | | 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.
* SERVER-20375 Constrain JS method thisvJason Carey2015-09-171-15/+44
| | | | | | | | | 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.
* SERVER-19627 Add Decimal128 type support to mongo shellRaymond Jacobson2015-08-131-0/+23
|
* SERVER-9973 Allow creating NumberLong from anything that supports toNumberJonathan Reams2015-07-301-0/+3
|
* SERVER-19597 originalBSON can be called on protoJason Carey2015-07-281-1/+1
| | | | | | 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.
* SERVER-18531 Integrate SpiderMonkeyJason Carey2015-07-141-0/+252
Provides SpiderMonkey 38.0.1esr as a JS engine for mongo and mongod.