Summary: | Old catch-clause scoping bug still unfixed | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mark S. Miller <erights> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | erights |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac (Intel) | ||
OS: | OS X 10.5 | ||
URL: | http://google-caja.googlecode.com/svn/trunk/doc/html/es5-talk/img25.html |
Description
Mark S. Miller
2010-02-22 20:28:08 PST
Oops. Thanks to Brendan for the correction. I was thinking about the code example in a nested scope as follows, but I hadn't tested that way. Tested nested, it works fine. Sorry for the misunderstanding. (function(){ function foo(){this.x = 11;} var x = 'bar'; try { throw foo; } catch(e) { e(); print(x); } })(); // prints bar |