(target, key, descriptor)
| 24030 | _resetCounter++; |
| 24031 | } |
| 24032 | function memoize(target, key, descriptor) { |
| 24033 | // We bind to "null" to prevent people from inadvertently pulling values from "this", |
| 24034 | // rather than passing them in as input values which can be memoized. |
| 24035 | var fn = memoizeFunction(descriptor.value && descriptor.value.bind(null)); |
| 24036 | return { |
| 24037 | configurable: true, |
| 24038 | get: function() { |
| 24039 | return fn; |
| 24040 | } |
| 24041 | }; |
| 24042 | } |
| 24043 | function memoizeFunction(cb, maxCacheSize, ignoreNullOrUndefinedResult) { |
| 24044 | if (maxCacheSize === void 0) maxCacheSize = 100; |
| 24045 | if (ignoreNullOrUndefinedResult === void 0) ignoreNullOrUndefinedResult = false; |
no test coverage detected