(arg, name, acceptArrayAnnotation)
| 1946 | } |
| 1947 | |
| 1948 | function assertArgFn(arg, name, acceptArrayAnnotation) { |
| 1949 | if (acceptArrayAnnotation && isArray(arg)) { |
| 1950 | arg = arg[arg.length - 1]; |
| 1951 | } |
| 1952 | |
| 1953 | assertArg(isFunction(arg), name, 'not a function, got ' + |
| 1954 | (arg && typeof arg === 'object' ? arg.constructor.name || 'Object' : typeof arg)); |
| 1955 | return arg; |
| 1956 | } |
| 1957 | |
| 1958 | /** |
| 1959 | * throw error if the name given is hasOwnProperty |
no test coverage detected