maxnordlund / function.prototype

Polyfill for Function.prototype.{apply,bind,call}

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSP violation

maxnordlund opened this issue · comments

Use recursion to avoid CSP violation, á la Prologs call meta predicate.

return eval("object[symbol](" + _join(parameterList, ", ") + ")");

This is also needed for bind using the new Function constructor.