Skip to content

Commit 5f35b70

Browse files
committed
feature: @putout/operator-keyword: default: add
1 parent 9b8232c commit 5f35b70

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
@@ -52,6 +52,7 @@ const statements = [
5252
'while',
5353
'class',
5454
'extends',
55+
'default',
5556
];
5657

5758
const keywords = [

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,10 @@ test('putout: operator: isKeyword: async', (t) => {
177177
t.ok(result);
178178
t.end();
179179
});
180+
181+
test('putout: operator: isKeyword: default', (t) => {
182+
const result = isKeyword('default');
183+
184+
t.ok(result);
185+
t.end();
186+
});

0 commit comments

Comments
 (0)