source: trip-planner-front/node_modules/zone.js/bundles/sync-test.umd.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
1'use strict';
2/**
3 * @license Angular v12.0.0-next.0
4 * (c) 2010-2020 Google LLC. https://angular.io/
5 * License: MIT
6 */
7(function (factory) {
8 typeof define === 'function' && define.amd ? define(factory) :
9 factory();
10}((function () {
11 'use strict';
12 /**
13 * @license
14 * Copyright Google LLC All Rights Reserved.
15 *
16 * Use of this source code is governed by an MIT-style license that can be
17 * found in the LICENSE file at https://angular.io/license
18 */
19 var SyncTestZoneSpec = /** @class */ (function () {
20 function SyncTestZoneSpec(namePrefix) {
21 this.runZone = Zone.current;
22 this.name = 'syncTestZone for ' + namePrefix;
23 }
24 SyncTestZoneSpec.prototype.onScheduleTask = function (delegate, current, target, task) {
25 switch (task.type) {
26 case 'microTask':
27 case 'macroTask':
28 throw new Error("Cannot call " + task.source + " from within a sync test.");
29 case 'eventTask':
30 task = delegate.scheduleTask(target, task);
31 break;
32 }
33 return task;
34 };
35 return SyncTestZoneSpec;
36 }());
37 // Export the class so that new instances can be created with proper
38 // constructor params.
39 Zone['SyncTestZoneSpec'] = SyncTestZoneSpec;
40})));
Note: See TracBrowser for help on using the repository browser.