1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

LibJS: Actually use eval() in non-string arg eval test

This commit is contained in:
Linus Groh 2021-03-17 21:08:54 +01:00 committed by Andreas Kling
parent 60e630d5a0
commit b985fa989e

View file

@ -26,6 +26,6 @@ test("syntax error", () => {
});
test("returns 1st argument unless 1st argument is a string", () => {
var string_object = new String("1 + 2");
expect(string_object).toBe(string_object);
var stringObject = new String("1 + 2");
expect(eval(stringObject)).toBe(stringObject);
});