Debian Codegraph @

closure-library/closure/goog/debug/errorhandlerweakdep.js

raw
1 // Copyright 2008 The Closure Library Authors. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS-IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 /**
16 * @fileoverview File which defines dummy object to work around undefined
17 * properties compiler warning for weak dependencies on
18 * {@link goog.debug.ErrorHandler#protectEntryPoint}.
19 *
20 */
21
22 goog.provide('goog.debug.errorHandlerWeakDep');
23
24
25 /**
26 * Dummy object to work around undefined properties compiler warning.
27 * @type {!Object<string,Function>}
28 */
29 goog.debug.errorHandlerWeakDep = {
30 /**
31 * @param {Function} fn An entry point function to be protected.
32 * @param {boolean=} opt_tracers Whether to install tracers around the
33 * fn.
34 * @return {Function} A protected wrapper function that calls the
35 * entry point function.
36 */
37 protectEntryPoint: function(fn, opt_tracers) { return fn; }
38 };