mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
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) {
|
if (err === asyncGC.notCollected) {
|
||||||
// Do not fail as GC can't provide necessary resources.
|
// Do not fail as GC can't provide necessary resources.
|
||||||
$DONE();
|
$DONE();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$DONE(err);
|
$DONE(err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user