Debian Codegraph @

js/src/jit-test/tests/promise/getwaitforallpromise-error-handling.js

raw
1 load(libdir + "asserts.js");
2
3 assertThrowsInstanceOf(_=>getWaitForAllPromise(42), Error);
4 assertThrowsInstanceOf(_=>getWaitForAllPromise([42]), Error);
5 assertThrowsInstanceOf(_=>getWaitForAllPromise([{}]), Error);
6
7 // Shouldn't throw.
8 getWaitForAllPromise([Promise.resolve()]);