- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Thu, 09 Aug 2012 22:44:48 -0400
- To: public-webapps@w3.org
On 8/9/12 10:35 PM, Boris Zbarsky wrote: > It's pretty unclear. Consider this testcase: > > <script> > var open; > alert(open); > </script> > > and observe that it does not alert undefined in Safari, Opera, or > Chrome, though it does so in Gecko. One other note. This testcase: <script> alert(open); function open() { } </script> interoperably alerts the user-defined function in Opera, Gecko, WebKit+JSC, WebKit+V8. I _think_ the var spec change was to align the behavior of "var" with that of "function", though I could be wrong. -Boris
Received on Friday, 10 August 2012 02:45:17 UTC