mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
LibJS: Add missing undefined fallback to IfStatement completions
Also add spec comments.
This commit is contained in:
parent
a6476ad61f
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