defineProperties-6f7a50f2.js 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /* This file is automatically rebuilt by the Cesium build process. */
  2. define(['exports', './defined-26bd4a03'], function (exports, defined) { 'use strict';
  3. var definePropertyWorks = (function() {
  4. try {
  5. return 'x' in Object.defineProperty({}, 'x', {});
  6. } catch (e) {
  7. return false;
  8. }
  9. })();
  10. /**
  11. * Defines properties on an object, using Object.defineProperties if available,
  12. * otherwise returns the object unchanged. This function should be used in
  13. * setup code to prevent errors from completely halting JavaScript execution
  14. * in legacy browsers.
  15. *
  16. * @private
  17. *
  18. * @exports defineProperties
  19. */
  20. var defineProperties = Object.defineProperties;
  21. if (!definePropertyWorks || !defined.defined(defineProperties)) {
  22. defineProperties = function(o) {
  23. return o;
  24. };
  25. }
  26. var defineProperties$1 = defineProperties;
  27. exports.defineProperties = defineProperties$1;
  28. });