errorhandlerweakdep.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. * @fileoverview File which defines dummy object to work around undefined
  16. * properties compiler warning for weak dependencies on
  17. * {@link goog.debug.ErrorHandler#protectEntryPoint}.
  18. *
  19. */
  20. goog.provide('goog.debug.errorHandlerWeakDep');
  21. /**
  22. * Dummy object to work around undefined properties compiler warning.
  23. * @type {!Object<string,Function>}
  24. */
  25. goog.debug.errorHandlerWeakDep = {
  26. /**
  27. * @param {Function} fn An entry point function to be protected.
  28. * @param {boolean=} opt_tracers Whether to install tracers around the
  29. * fn.
  30. * @return {Function} A protected wrapper function that calls the
  31. * entry point function.
  32. */
  33. protectEntryPoint: function(fn, opt_tracers) { return fn; }
  34. };