mirror of https://github.com/tc39/test262.git
Fix argument in example calls to assert.throwsAsync()
Thanks Ashley!
This commit is contained in:
parent
7f3558376d
commit
ac1c3546c3
|
@ -46,11 +46,11 @@ includes: [asyncHelpers.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
asyncTest(async function () {
|
asyncTest(async function () {
|
||||||
await assert.throwsAsync(TypeError, Array.fromAsync([], null), "null mapfn");
|
await assert.throwsAsync(TypeError, () => Array.fromAsync([], null), "null mapfn");
|
||||||
await assert.throwsAsync(TypeError, Array.fromAsync([], {}), "non-callable object mapfn");
|
await assert.throwsAsync(TypeError, () => Array.fromAsync([], {}), "non-callable object mapfn");
|
||||||
await assert.throwsAsync(TypeError, Array.fromAsync([], "String"), "string mapfn");
|
await assert.throwsAsync(TypeError, () => Array.fromAsync([], "String"), "string mapfn");
|
||||||
await assert.throwsAsync(TypeError, Array.fromAsync([], true), "boolean mapfn");
|
await assert.throwsAsync(TypeError, () => Array.fromAsync([], true), "boolean mapfn");
|
||||||
await assert.throwsAsync(TypeError, Array.fromAsync([], 3.1416), "number mapfn");
|
await assert.throwsAsync(TypeError, () => Array.fromAsync([], 3.1416), "number mapfn");
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue