[SERVER-52519] Initialize MozJS in a MONGO_INITIALIZER Created: 30/Oct/20 Updated: 27/Dec/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Benjamin Caimano (Inactive) | Assignee: | Backlog - Query Integration |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | qi-javascript, qi-tech-debt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Assigned Teams: |
Query Integration
|
||||
| Participants: | |||||
| Description |
|
We call JS_Init() and JS_ShutDown() as part of the ctor/dtor for MozJSScriptEngine here. These functions can only be called once per process each. This seems like a natural fit for a MONGO_INITIALIZER. |