mirror of https://github.com/mongodb/mongo
SERVER-106446: Private identifiers in mochalite cause jstestfuzz mutations to error (#37489)
GitOrigin-RevId: 44b344f9db1d60bcfb12f9882f22e4d93684803a
This commit is contained in:
parent
294f7d72a3
commit
c5457b9dd1
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue