mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
LibJS: Require initializer for 'const' variable declaration
This commit is contained in:
committed by
Andreas Kling
parent
812e3ecedd
commit
563d3c8055
@@ -0,0 +1,5 @@
|
||||
test("missing initializer in 'const' variable declaration is syntax error", () => {
|
||||
expect("const foo").not.toEval();
|
||||
expect("const foo = 1, bar").not.toEval();
|
||||
expect("const foo = 1, bar, baz = 2").not.toEval();
|
||||
});
|
||||
Reference in New Issue
Block a user