Path: blob/trunk/third_party/closure/goog/debug/errorhandlerweakdep.js
2868 views
// Copyright 2008 The Closure Library Authors. All Rights Reserved.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS-IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314/**15* @fileoverview File which defines dummy object to work around undefined16* properties compiler warning for weak dependencies on17* {@link goog.debug.ErrorHandler#protectEntryPoint}.18*19*/2021goog.provide('goog.debug.errorHandlerWeakDep');222324/**25* Dummy object to work around undefined properties compiler warning.26* @type {!Object<string,Function>}27*/28goog.debug.errorHandlerWeakDep = {29/**30* @param {Function} fn An entry point function to be protected.31* @param {boolean=} opt_tracers Whether to install tracers around the32* fn.33* @return {Function} A protected wrapper function that calls the34* entry point function.35*/36protectEntryPoint: function(fn, opt_tracers) { return fn; }37};383940