News for hackers. Stuff that matters.
Re:Treating JavaScript like a 30 year old language by ufo on Wednesday July 04, 2012 @04:28PM (#4200763)
You can't use arguments.callee when in strict mode. So far the only alternative is to manually encode the class name and argument list:

    if(!(this instanceof MyClass)){
        return new MyClass(a,b,c)
    }
Re:Treating JavaScript like a 30 year old language by shawndumas on Wednesday July 04, 2012 @08:23PM (#4201264)
Correct. But, like John Resig, I am gonna miss it...

    "Personally, I’m going to miss arguments.callee,
     I used it in a number of places in my code."

     -- John Resig (May 22, 2009 at 7:26 am) [1]
----

[1]: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more...