Skip to content
Browse files

option.debug and empty blocks

  • Loading branch information...
1 parent b3cb037 commit 9ab8a2e8ddb814d55db1e60de91f37e4829f49a2 @douglascrockford committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 jslint.js
View
6 jslint.js
@@ -1,5 +1,5 @@
// jslint.js
-// 2014-01-26
+// 2014-02-06
// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
@@ -2419,7 +2419,7 @@ klass: do {
array = [statement()];
array.disrupt = array[0].disrupt;
}
- if (kind !== 'catch' && array.length === 0) {
+ if (kind !== 'catch' && array.length === 0 && !option.debug) {
curly.warn('empty_block');
}
block_var.forEach(function (name) {
@@ -4271,7 +4271,7 @@ klass: do {
itself.jslint = itself;
- itself.edition = '2014-01-26';
+ itself.edition = '2014-02-06';
return itself;
}());

0 comments on commit 9ab8a2e

Please sign in to comment.
Something went wrong with that request. Please try again.