mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:58:10 +00:00
LibJS: Use create_list_from_array_like() in Reflect.{apply,construct}()
This commit is contained in:
parent
ad7aa05cc6
commit
f932da095e
4 changed files with 4 additions and 26 deletions
|
@ -18,7 +18,7 @@ describe("errors", () => {
|
|||
[null, undefined, "foo", 123, NaN, Infinity].forEach(value => {
|
||||
expect(() => {
|
||||
Reflect.construct(() => {}, value);
|
||||
}).toThrowWithMessage(TypeError, "Arguments list must be an object");
|
||||
}).toThrowWithMessage(TypeError, `${value} is not an object`);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue