Skip to content

Commit 946c4df

Browse files
committed
add test case for comments in import()
1 parent babc8a4 commit 946c4df

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
it("should allow random comments in import()", () => {
2+
return Promise.all([
3+
import(/* hello world */ "./module"),
4+
import(/* }); */ "./module"),
5+
import(/* test */ "./module"),
6+
import(/* 1234 */ "./module")
7+
]);
8+
});

test/cases/parsing/comment-in-import/module.js

Whitespace-only changes.

0 commit comments

Comments
 (0)