Skip to content

Commit ab7964b

Browse files
committed
closes #12
1 parent 8c3acd2 commit ab7964b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/es6/no-empty.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const client = {
2+
emit(message, data) {
3+
return `${message} and ${data}`;
4+
}
5+
};
6+
7+
const data = {};
8+
9+
try {
10+
client.emit(`message`, JSON.stringify(data));
11+
} catch (ignore) {
12+
// ignore it
13+
}

0 commit comments

Comments
 (0)