[Webkit-unassigned] [Bug 7726] REGRESSION: orbitz calendar fails (JavaScript function serialization/parsing)

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Mon Mar 13 19:44:39 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=7726





------- Comment #6 from darin at apple.com  2006-03-13 19:44 PDT -------
(In reply to comment #5)
> because a FunctionBody requires braces

I was wrong. A FunctionBody does not require braces.

Maciej points out that in this line of code:

    new Function("function (event) {}")

the text "function (event) { }" is the body of a function. So there's a body of
a function there that contains another function in it!

As far as I can tell from reading the JavaScript specification, that *should*
be a syntax error because that's a FunctionExpression, not a
FunctionDeclaration. So I think that on issue (2) Firefox is wrong and WebKit
is right! I'd love to get more data about that. We might want to file a Mozilla
bug report.


-- 
Configure bugmail: http://bugzilla.opendarwin.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