[Webkit-unassigned] [Bug 27226] Possibly faulty handling of function statements enclosed in other statements (i.e. block, if, etc). JavaScriptCore test ecma_3/FunExpr/fe-001.js failed.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 10 12:30:02 PST 2012


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


C. Scott Ananian <cscott at laptop.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cscott at laptop.org




--- Comment #3 from C. Scott Ananian <cscott at laptop.org>  2012-02-10 12:30:01 PST ---
Another interesting case:

function foo() {
  try {
    throw 1;
  } catch (e) {
    function f() { return e; }
    return f();
  }
}

This function returns 1 as expected on rhino and Firefox.  On webkit (node, chrome, etc) it throws "ReferenceError: e is not defined", because the function definition has been hoisted out of the catch block.

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



More information about the webkit-unassigned mailing list