getwaitforallpromise-error-handling.js (278B)
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()]);