mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 10:18:59 +00:00
LibJS: Actually use eval() in non-string arg eval test
This commit is contained in:
parent
60e630d5a0
commit
b985fa989e
Notes:
sideshowbarker
2024-07-19 01:59:31 +09:00
Author: https://github.com/linusg
Commit: b985fa989e
Pull-request: https://github.com/SerenityOS/serenity/pull/5851
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