diff options
author | Marvin Borner | 2018-11-07 18:02:36 +0100 |
---|---|---|
committer | Marvin Borner | 2018-11-07 18:02:36 +0100 |
commit | 824a2d9f587ca017fc71b84d835e72f54f9c87c4 (patch) | |
tree | 765267ea4686f752aad1f69930cfee5680cc494a /node_modules/locutus/php/funchand/call_user_func.js.map | |
parent | fe75612e86b493a4e66c4e104e22658679cc014f (diff) |
Began rewrite
Diffstat (limited to 'node_modules/locutus/php/funchand/call_user_func.js.map')
-rw-r--r-- | node_modules/locutus/php/funchand/call_user_func.js.map | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/funchand/call_user_func.js.map b/node_modules/locutus/php/funchand/call_user_func.js.map new file mode 100644 index 0000000..c1876cb --- /dev/null +++ b/node_modules/locutus/php/funchand/call_user_func.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/php/funchand/call_user_func.js"],"names":["module","exports","call_user_func","cb","parameters","callUserFuncArray","require","Array","prototype","slice","call","arguments"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,cAAT,CAAyBC,EAAzB,EAA6BC,UAA7B,EAAyC;AAAE;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,oBAAoBC,QAAQ,kCAAR,CAAxB;AACAF,eAAaG,MAAMC,SAAN,CAAgBC,KAAhB,CAAsBC,IAAtB,CAA2BC,SAA3B,EAAsC,CAAtC,CAAb;AACA,SAAON,kBAAkBF,EAAlB,EAAsBC,UAAtB,CAAP;AACD,CAhBD","file":"call_user_func.js","sourcesContent":["module.exports = function call_user_func (cb, parameters) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/call_user_func/\n // original by: Brett Zamir (http://brett-zamir.me)\n // improved by: Diplom@t (http://difane.com/)\n // improved by: Brett Zamir (http://brett-zamir.me)\n // note 1: Depends on call_user_func_array which in turn depends on the `cb` that is passed,\n // note 1: this function can use `eval`.\n // note 1: The `eval` input is however checked to only allow valid function names,\n // note 1: So it should not be unsafer than uses without eval (seeing as you can)\n // note 1: already pass any function to be executed here.\n // example 1: call_user_func('isNaN', 'a')\n // returns 1: true\n\n var callUserFuncArray = require('../funchand/call_user_func_array')\n parameters = Array.prototype.slice.call(arguments, 1)\n return callUserFuncArray(cb, parameters)\n}\n"]}
\ No newline at end of file |