Skip to content
Browse files

Assign a function to a global variable

  • Loading branch information...
1 parent 4ceff52 commit b4a1c3ad9fc6527b78d023922b13dfff66c521c2 @douglascrockford douglascrockford committed
Showing with 9 additions and 7 deletions.
  1. +9 −7 jslint.js
View
16 jslint.js
@@ -1,5 +1,5 @@
// jslint.js
-// 2012-02-16
+// 2012-02-17
// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
@@ -2769,11 +2769,13 @@ klass: do {
} else {
stop('read_only');
}
- funct['(params)'].forEach(function (value) {
- if (value.string === left.string) {
- value.assign = true;
- }
- });
+ if (funct['(params)']) {
+ funct['(params)'].forEach(function (value) {
+ if (value.string === left.string) {
+ value.assign = true;
+ }
+ });
+ }
} else if (option.safe) {
l = left;
do {
@@ -6387,7 +6389,7 @@ klass: do {
};
itself.jslint = itself;
- itself.edition = '2012-02-16';
+ itself.edition = '2012-02-17';
return itself;
}());

0 comments on commit b4a1c3a

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