diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/func_ret_func.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/samples/func_ret_func.js b/samples/func_ret_func.js new file mode 100644 index 0000000..b4b5a09 --- /dev/null +++ b/samples/func_ret_func.js @@ -0,0 +1,12 @@ +/* very fucking weird! + */ + +function retFunction(foo) { + return function bar() { + console.log(foo); + } +} + +var foo = new retFunction('hello, world!'); +foo.call(foo); + |