mirror of https://github.com/tc39/test262.git
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:
parent
1bb7ecee5b
commit
ee7c379375
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue