diff options
author | Linus Groh <mail@linusgroh.de> | 2021-03-17 21:08:54 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-17 21:28:14 +0100 |
commit | b985fa989eca6dde91ca85df0e6592fa125d076e (patch) | |
tree | 6c02cf102d37c1729070d9bf39176f2f13c4e6b0 /Userland | |
parent | 60e630d5a0f1f075ebcc2e4541858aff9ad70604 (diff) | |
download | serenity-b985fa989eca6dde91ca85df0e6592fa125d076e.zip |
LibJS: Actually use eval() in non-string arg eval test
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/Tests/eval-basic.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Tests/eval-basic.js b/Userland/Libraries/LibJS/Tests/eval-basic.js index b1853b5ac8..a2a3658db9 100644 --- a/Userland/Libraries/LibJS/Tests/eval-basic.js +++ b/Userland/Libraries/LibJS/Tests/eval-basic.js @@ -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); }); |