aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/symbol-observable/lib/ponyfill.js
diff options
context:
space:
mode:
authorNevena Bojovic <nenabojov@gmail.com>2022-03-01 22:05:25 +0100
committerNevena Bojovic <nenabojov@gmail.com>2022-03-01 22:05:25 +0100
commit6555fb80fdd8f6a5d201efadec3189d1244830a0 (patch)
treec1aa1c5aedc634ad1ea7fad4847884d559b51290 /sandbox/testAppNevena/Front/node_modules/symbol-observable/lib/ponyfill.js
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Izbrisala bin, obj i node-modules.
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/symbol-observable/lib/ponyfill.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/symbol-observable/lib/ponyfill.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/symbol-observable/lib/ponyfill.js b/sandbox/testAppNevena/Front/node_modules/symbol-observable/lib/ponyfill.js
deleted file mode 100644
index 19e2dbd9..00000000
--- a/sandbox/testAppNevena/Front/node_modules/symbol-observable/lib/ponyfill.js
+++ /dev/null
@@ -1,40 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports['default'] = symbolObservablePonyfill;
-function symbolObservablePonyfill(root) {
- var result;
- var _Symbol = root.Symbol;
-
- if (typeof _Symbol === 'function') {
- if (_Symbol.observable) {
- result = _Symbol.observable;
- } else {
-
- if (typeof _Symbol['for'] === 'function') {
- // This just needs to be something that won't trample other user's Symbol.for use
- // It also will guide people to the source of their issues, if this is problematic.
- // META: It's a resource locator!
- result = _Symbol['for']('https://github.com/benlesh/symbol-observable');
- } else {
- // Symbol.for didn't exist! The best we can do at this point is a totally
- // unique symbol. Note that the string argument here is a descriptor, not
- // an identifier. This symbol is unique.
- result = _Symbol('https://github.com/benlesh/symbol-observable');
- }
- try {
- _Symbol.observable = result;
- } catch (err) {
- // Do nothing. In some environments, users have frozen `Symbol` for security reasons,
- // if it is frozen assigning to it will throw. In this case, we don't care, because
- // they will need to use the returned value from the ponyfill.
- }
- }
- } else {
- result = '@@observable';
- }
-
- return result;
-}; \ No newline at end of file