mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +00:00
LibJS: Actually use eval() in non-string arg eval test
This commit is contained in:
parent
60e630d5a0
commit
b985fa989e
1 changed files with 2 additions and 2 deletions
|
@ -26,6 +26,6 @@ test("syntax error", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
test("returns 1st argument unless 1st argument is a string", () => {
|
test("returns 1st argument unless 1st argument is a string", () => {
|
||||||
var string_object = new String("1 + 2");
|
var stringObject = new String("1 + 2");
|
||||||
expect(string_object).toBe(string_object);
|
expect(eval(stringObject)).toBe(stringObject);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue