0ad/binaries/data/mods/_test.gui/gui/resolveReject/resolveReject.js
phosit 4f62e9f6f0 Change the GuiManager tests to use promises
Adopt the new interface by the tests: as an example and to show that
it's sound.
2025-03-09 10:39:20 +01:00

5 lines
66 B
JavaScript

async function init(reject)
{
if (reject)
throw new Error();
}