1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
18 | for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
19 | to[j] = from[i];
|
20 | return to;
|
21 | };
|
22 | Object.defineProperty(exports, "__esModule", { value: true });
|
23 | exports.NoopContextManager = void 0;
|
24 | var context_1 = require("./context");
|
25 | var NoopContextManager = (function () {
|
26 | function NoopContextManager() {
|
27 | }
|
28 | NoopContextManager.prototype.active = function () {
|
29 | return context_1.ROOT_CONTEXT;
|
30 | };
|
31 | NoopContextManager.prototype.with = function (_context, fn, thisArg) {
|
32 | var args = [];
|
33 | for (var _i = 3; _i < arguments.length; _i++) {
|
34 | args[_i - 3] = arguments[_i];
|
35 | }
|
36 | return fn.call.apply(fn, __spreadArray([thisArg], args));
|
37 | };
|
38 | NoopContextManager.prototype.bind = function (_context, target) {
|
39 | return target;
|
40 | };
|
41 | NoopContextManager.prototype.enable = function () {
|
42 | return this;
|
43 | };
|
44 | NoopContextManager.prototype.disable = function () {
|
45 | return this;
|
46 | };
|
47 | return NoopContextManager;
|
48 | }());
|
49 | exports.NoopContextManager = NoopContextManager;
|
50 |
|
\ | No newline at end of file |