Harness: Ensure $DONE called only once in async-gc.js

This looks like a bug: resolveAsyncGC() is supposed to succeed if the
thrown value is asyncGC.notCollected, but instead it would call $DONE()
twice. An added "return" prevents that.
This commit is contained in:
Philip Chimento 2022-09-28 16:44:02 -07:00 committed by Ms2ger
parent 1bb7ecee5b
commit ee7c379375
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ function resolveAsyncGC(err) {
if (err === asyncGC.notCollected) {
// Do not fail as GC can't provide necessary resources.
$DONE();
return;
}
$DONE(err);