summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/funchand/create_function.js.map
diff options
context:
space:
mode:
authorMarvin Borner2018-11-07 18:02:36 +0100
committerMarvin Borner2018-11-07 18:02:36 +0100
commit824a2d9f587ca017fc71b84d835e72f54f9c87c4 (patch)
tree765267ea4686f752aad1f69930cfee5680cc494a /node_modules/locutus/php/funchand/create_function.js.map
parentfe75612e86b493a4e66c4e104e22658679cc014f (diff)
Began rewrite
Diffstat (limited to 'node_modules/locutus/php/funchand/create_function.js.map')
-rw-r--r--node_modules/locutus/php/funchand/create_function.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/funchand/create_function.js.map b/node_modules/locutus/php/funchand/create_function.js.map
new file mode 100644
index 0000000..0b447a5
--- /dev/null
+++ b/node_modules/locutus/php/funchand/create_function.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../src/php/funchand/create_function.js"],"names":["module","exports","create_function","args","code","Function","apply","split","concat","e"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,eAAT,CAA0BC,IAA1B,EAAgCC,IAAhC,EAAsC;AAAE;AACvD;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAI;AACF,WAAOC,SAASC,KAAT,CAAe,IAAf,EAAqBH,KAAKI,KAAL,CAAW,GAAX,EAAgBC,MAAhB,CAAuBJ,IAAvB,CAArB,CAAP;AACD,GAFD,CAEE,OAAOK,CAAP,EAAU;AACV,WAAO,KAAP;AACD;AACF,CAbD","file":"create_function.js","sourcesContent":["module.exports = function create_function (args, code) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/create_function/\n // original by: Johnny Mast (http://www.phpvrouwen.nl)\n // reimplemented by: Brett Zamir (http://brett-zamir.me)\n // example 1: var $f = create_function('a, b', 'return (a + b)')\n // example 1: $f(1, 2)\n // returns 1: 3\n\n try {\n return Function.apply(null, args.split(',').concat(code))\n } catch (e) {\n return false\n }\n}\n"]} \ No newline at end of file