Skip to content

Commit 7d4888a

Browse files
committed
Refactor: mark function private
1 parent 0231755 commit 7d4888a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wasm/quick-lint-js.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class DocumentProcessManager {
312312
this._processPromise = null;
313313
}
314314

315-
async createNewProcessAsync() {
315+
async _createNewProcessAsync() {
316316
let processFactory = await this._processFactoryPromise;
317317
let process = await processFactory.createProcessAsync();
318318
this._processesCreated += 1;
@@ -322,15 +322,15 @@ class DocumentProcessManager {
322322
async getOrCreateProcessAsync() {
323323
// BEGIN CRITICAL SECTION (no awaiting below)
324324
if (this._processPromise === null) {
325-
this._processPromise = this.createNewProcessAsync();
325+
this._processPromise = this._createNewProcessAsync();
326326
// END CRITICAL SECTION (no awaiting above)
327327
} else {
328328
// END CRITICAL SECTION (no awaiting above)
329329
}
330330
let process = await this._processPromise;
331331
// BEGIN CRITICAL SECTION (no awaiting below)
332332
while (process.isTainted()) {
333-
this._processPromise = this.createNewProcessAsync();
333+
this._processPromise = this._createNewProcessAsync();
334334
// END CRITICAL SECTION (no awaiting above)
335335
process = await this._processPromise;
336336
}

0 commit comments

Comments
 (0)