a zip code crypto-currency system good for red ONLY

sync-test.js 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * @license
  3. * Copyright Google Inc. All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. (function (global, factory) {
  9. typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
  10. typeof define === 'function' && define.amd ? define(factory) :
  11. (factory());
  12. }(this, (function () { 'use strict';
  13. /**
  14. * @license
  15. * Copyright Google Inc. All Rights Reserved.
  16. *
  17. * Use of this source code is governed by an MIT-style license that can be
  18. * found in the LICENSE file at https://angular.io/license
  19. */
  20. var SyncTestZoneSpec = /** @class */ (function () {
  21. function SyncTestZoneSpec(namePrefix) {
  22. this.runZone = Zone.current;
  23. this.name = 'syncTestZone for ' + namePrefix;
  24. }
  25. SyncTestZoneSpec.prototype.onScheduleTask = function (delegate, current, target, task) {
  26. switch (task.type) {
  27. case 'microTask':
  28. case 'macroTask':
  29. throw new Error("Cannot call " + task.source + " from within a sync test.");
  30. case 'eventTask':
  31. task = delegate.scheduleTask(target, task);
  32. break;
  33. }
  34. return task;
  35. };
  36. return SyncTestZoneSpec;
  37. }());
  38. // Export the class so that new instances can be created with proper
  39. // constructor params.
  40. Zone['SyncTestZoneSpec'] = SyncTestZoneSpec;
  41. })));