SERVER-106446: Private identifiers in mochalite cause jstestfuzz mutations to error (#37489)

GitOrigin-RevId: 44b344f9db1d60bcfb12f9882f22e4d93684803a
This commit is contained in:
Steve McClure 2025-06-18 12:39:08 -04:00 committed by MongoDB Bot
parent 294f7d72a3
commit c5457b9dd1
1 changed files with 7 additions and 7 deletions

View File

@ -41,16 +41,16 @@ class Context {}
// Test to be run with a given Context
class Test {
#titleArray;
#fn;
static #titleSep = " > ";
_titleArray;
_fn;
static _titleSep = " > ";
constructor(title, fn) {
this.#titleArray = title;
this.#fn = fn;
this._titleArray = title;
this._fn = fn;
}
fullTitle() {
return this.#titleArray.join(Test.#titleSep);
return this._titleArray.join(Test._titleSep);
}
/**
@ -58,7 +58,7 @@ class Test {
* @param {Context} ctx
*/
run(ctx) {
this.#fn.call(ctx);
this._fn.call(ctx);
}
printPass() {