Skip to content

Commit a3ff2b9

Browse files
committed
feature: @putout/operator-keyword: async
1 parent 3d19f2d commit a3ff2b9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/operator-keyword/lib/keyword.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const statements = [
4040
...declarations,
4141
...moduleDeclarations,
4242
...typescriptReserved,
43+
'async',
4344
'break',
4445
'continue',
4546
'for',

packages/operator-keyword/lib/keyword.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,10 @@ test('putout: operator: isKeyword: module: no', (t) => {
170170
t.notOk(result);
171171
t.end();
172172
});
173+
174+
test('putout: operator: isKeyword: async', (t) => {
175+
const result = isKeyword('async');
176+
177+
t.ok(result);
178+
t.end();
179+
});

0 commit comments

Comments
 (0)