summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/funchand/get_defined_functions.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/funchand/get_defined_functions.js.map')
-rw-r--r--node_modules/locutus/php/funchand/get_defined_functions.js.map1
1 files changed, 0 insertions, 1 deletions
diff --git a/node_modules/locutus/php/funchand/get_defined_functions.js.map b/node_modules/locutus/php/funchand/get_defined_functions.js.map
deleted file mode 100644
index a79d768..0000000
--- a/node_modules/locutus/php/funchand/get_defined_functions.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["../../../src/php/funchand/get_defined_functions.js"],"names":["module","exports","get_defined_functions","$global","window","global","$locutus","php","i","arr","already","push","j","e"],"mappings":";;;;AAAAA,OAAOC,OAAP,GAAiB,SAASC,qBAAT,GAAkC;AAAE;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,UAAW,OAAOC,MAAP,KAAkB,WAAlB,GAAgCA,MAAhC,GAAyCC,MAAxD;AACAF,UAAQG,QAAR,GAAmBH,QAAQG,QAAR,IAAoB,EAAvC;AACA,MAAIA,WAAWH,QAAQG,QAAvB;AACAA,WAASC,GAAT,GAAeD,SAASC,GAAT,IAAgB,EAA/B;;AAEA,MAAIC,IAAI,EAAR;AACA,MAAIC,MAAM,EAAV;AACA,MAAIC,UAAU,EAAd;;AAEA,OAAKF,CAAL,IAAUL,OAAV,EAAmB;AACjB,QAAI;AACF,UAAI,OAAOA,QAAQK,CAAR,CAAP,KAAsB,UAA1B,EAAsC;AACpC,YAAI,CAACE,QAAQF,CAAR,CAAL,EAAiB;AACfE,kBAAQF,CAAR,IAAa,CAAb;AACAC,cAAIE,IAAJ,CAASH,CAAT;AACD;AACF,OALD,MAKO,IAAI,QAAOL,QAAQK,CAAR,CAAP,MAAsB,QAA1B,EAAoC;AACzC,aAAK,IAAII,CAAT,IAAcT,QAAQK,CAAR,CAAd,EAA0B;AACxB,cAAI,OAAOL,QAAQS,CAAR,CAAP,KAAsB,UAAtB,IAAoCT,QAAQS,CAAR,CAApC,IAAkD,CAACF,QAAQE,CAAR,CAAvD,EAAmE;AACjEF,oBAAQE,CAAR,IAAa,CAAb;AACAH,gBAAIE,IAAJ,CAASC,CAAT;AACD;AACF;AACF;AACF,KAdD,CAcE,OAAOC,CAAP,EAAU;AACV;AACA;AACD;AACF;;AAED,SAAOJ,GAAP;AACD,CA5CD","file":"get_defined_functions.js","sourcesContent":["module.exports = function get_defined_functions () { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/get_defined_functions/\n // original by: Brett Zamir (http://brett-zamir.me)\n // improved by: Brett Zamir (http://brett-zamir.me)\n // note 1: Test case 1: If get_defined_functions can find\n // note 1: itself in the defined functions, it worked :)\n // example 1: function test_in_array (array, p_val) {for(var i = 0, l = array.length; i < l; i++) {if (array[i] === p_val) return true} return false}\n // example 1: var $funcs = get_defined_functions()\n // example 1: var $found = test_in_array($funcs, 'get_defined_functions')\n // example 1: var $result = $found\n // returns 1: true\n // test: skip-1\n\n var $global = (typeof window !== 'undefined' ? window : global)\n $global.$locutus = $global.$locutus || {}\n var $locutus = $global.$locutus\n $locutus.php = $locutus.php || {}\n\n var i = ''\n var arr = []\n var already = {}\n\n for (i in $global) {\n try {\n if (typeof $global[i] === 'function') {\n if (!already[i]) {\n already[i] = 1\n arr.push(i)\n }\n } else if (typeof $global[i] === 'object') {\n for (var j in $global[i]) {\n if (typeof $global[j] === 'function' && $global[j] && !already[j]) {\n already[j] = 1\n arr.push(j)\n }\n }\n }\n } catch (e) {\n // Some objects in Firefox throw exceptions when their\n // properties are accessed (e.g., sessionStorage)\n }\n }\n\n return arr\n}\n"]} \ No newline at end of file