(options, param, name)
| 3974 | } |
| 3975 | |
| 3976 | function validateParam(options, param, name) { |
| 3977 | var key = '$' + name; |
| 3978 | if (strict) { |
| 3979 | if (isRestrictedWord(name)) { |
| 3980 | options.stricted = param; |
| 3981 | options.message = Messages.StrictParamName; |
| 3982 | } |
| 3983 | if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) { |
| 3984 | options.stricted = param; |
| 3985 | options.message = Messages.StrictParamDupe; |
| 3986 | } |
| 3987 | } else if (!options.firstRestricted) { |
| 3988 | if (isRestrictedWord(name)) { |
| 3989 | options.firstRestricted = param; |
| 3990 | options.message = Messages.StrictParamName; |
| 3991 | } else if (isStrictModeReservedWord(name)) { |
| 3992 | options.firstRestricted = param; |
| 3993 | options.message = Messages.StrictReservedWord; |
| 3994 | } else if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) { |
| 3995 | options.firstRestricted = param; |
| 3996 | options.message = Messages.StrictParamDupe; |
| 3997 | } |
| 3998 | } |
| 3999 | options.paramSet[key] = true; |
| 4000 | } |
| 4001 | |
| 4002 | function parseParam(options) { |
| 4003 | var token, param, def; |
no test coverage detected