Section 13.2: Rationale for "caller", "arguments" restriction

Mark S. Miller erights at google.com
Tue May 26 18:12:20 PDT 2009


On Tue, May 26, 2009 at 6:05 PM, Mark S. Miller <erights at google.com> wrote:

>
>     function laundry(obj, verb, args) {
>       "use strict";
>       return obj[verb].apply(obj, args);
>     }
>
>
A better laundry:

    function laundry(fun, thisArg, args) {
      "use strict";
      return fun.apply(thisArg, args);
    }


-- 
   Cheers,
   --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20090526/f40c91a5/attachment.html>


More information about the es-discuss mailing list