1
Fork 0
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:
Linus Groh 2021-06-09 23:28:20 +01:00
parent ad7aa05cc6
commit f932da095e
4 changed files with 4 additions and 26 deletions

View file

@ -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`);
});
});