mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-23 13:57:04 +00:00
LibJS: Actually use eval() in non-string arg eval test
This commit is contained in:
committed by
Andreas Kling
parent
60e630d5a0
commit
b985fa989e
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user