Skip to content

Commit 05c7ddb

Browse files
committed
feature: @putout/operator-keyword: debugger: add
1 parent 9f914f5 commit 05c7ddb

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
@@ -45,6 +45,7 @@ const statements = [
4545
'async',
4646
'break',
4747
'continue',
48+
'debugger',
4849
'for',
4950
'else',
5051
'from',

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,10 @@ test('putout: operator: isKeyword: with', (t) => {
198198
t.ok(result);
199199
t.end();
200200
});
201+
202+
test('putout: operator: isKeyword: debugger', (t) => {
203+
const result = isKeyword('debugger');
204+
205+
t.ok(result);
206+
t.end();
207+
});

0 commit comments

Comments
 (0)