[Webkit-unassigned] [Bug 19359] JavaScriptCore behaves differently from FF2/3 and IE when handling context in catch statement

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 28 03:13:17 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=19359





------- Comment #4 from oliver at apple.com  2008-06-28 03:13 PDT -------
Okay, this issue is just that ie/firefox are using an activation rather than a
real object (which contradicts the specs, but hey) -- I say we match their
behaviour.  Not only does it help compatibility (in a bizarre edge case at
least) but it makes it possible to actually optimise in a catch block,
something that was not technically possible before.

Possibly worth test the behaviour of this as well though
try {
  throw foo;
} catch(e) {
  with ({}) {
    print(x) // Should print "global.x"
    e();
    print(x) // Should add x to e
              // (Both IE and Firefox modify the global x)
  }
}


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list