1602 / compound

MVC framework. Built on Node.JS. Works on server and browser.
http://compoundjs.com
1.6k stars 182 forks source link

formFor helper is failing with Illegal access to a strict mode caller function #556

Closed kesavkolla closed 11 years ago

kesavkolla commented 11 years ago

I'm using ECT as my template language. When I call formFor from my template I get the error Illegal access to a strict mode caller function. I looked into the code helper.js the line

var buf = arguments.callee.buf = arguments.callee.caller.buf;

is causing the issue. The second arguments.callee.caller is throwing this error. What is the purpose of having calee.caller in formFor? This buf is not even used in this method. If I change it to just arguments.callee.buf things are working. Not sure is this correct way of fixing or not. Can you please shed some light on this?

emilianox commented 11 years ago

maybe https://github.com/1602/compound/issues/557 ?

kesavkolla commented 11 years ago

Yes these are related issues. The commit 70b6e0aca79f5066eb18178f5ca6d8685ec029fd fixes these issues.