Files
ladybird/Tests/LibJS/AST/input/import-statement.mjs
Andreas Kling 1a2880495d LibJS: Add AST test for import statement semicolon handling
Import statements fail to consume their trailing semicolons, resulting
in spurious EmptyStatement nodes in the AST. This will be fixed in the
next commit.
2026-02-19 12:02:50 +01:00

9 lines
170 B
JavaScript

import "module";
import "bare"
1 + 2;
import { foo } from "named";
import { bar } from "named-no-semi"
3 + 4;
import baz from "default";
import * as ns from "namespace";