[Webkit-unassigned] [Bug 18717] SQUIRRELFISH: eval returns the wrong value for a variable declaration statement
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 24 13:56:58 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=18717
------- Comment #2 from oliver at apple.com 2008-04-24 13:56 PDT -------
eval("var x = 0") should return undefined as nothing should ever assign to dst.
However the rule is (afaict from my testing) that var statements are
transparent to the result value, so
eval("someExpr; var x = 0;")
will return the result of someExpr, assuming someExpr actually has a return
value.
I believe therefore the example eval("f(); var x=0;") *should* return the
result of f().
--
Configure bugmail: http://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