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
commit b985fa989e
Notes: sideshowbarker 2024-07-19 01:59:31 +09:00

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