mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibJS: Add missing undefined fallback to IfStatement completions
Also add spec comments.
This commit is contained in:
parent
a6476ad61f
commit
d7f6635d55
Notes:
sideshowbarker
2024-07-17 21:52:51 +09:00
Author: https://github.com/linusg
Commit: d7f6635d55
2 changed files with 23 additions and 4 deletions
|
@ -0,0 +1,4 @@
|
|||
test("if statement consequent/alternate expression returns empty completion", () => {
|
||||
expect(eval("1; if (true) {}")).toBeUndefined();
|
||||
expect(eval("1; if (false) {} else {}")).toBeUndefined();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue