-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: JavaScript
-
Query Execution
-
ALL
-
Currently, we hard pivot between bson code values and js functions with the global isJavaScriptProtectionEnabled() function. To workaround passing functions between threads (in ScopedThread) we manually walk objects and eval functions.
Rather than doing that kind of dance, we should offer a per object flag to control that behavior (and set it for bson passed between js threads).
We should also remove the scrubbing that occurs in _threadStartWrapper()
- related to
-
SERVER-40425 fix Object.extend() for all custom javascript objects
- Backlog