Bug 10879 - eval doesn't like anonymous function expressions
Summary: eval doesn't like anonymous function expressions
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Minor
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2006-09-15 23:23 PDT by Jesse Ruderman
Modified: 2007-05-08 00:15 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Ruderman 2006-09-15 23:23:24 PDT
This doesn't work:
javascript:g=eval("function(){}"); alert(g)

This does:
javascript:g=eval("(function(){})"); alert(g)
Comment 1 Jesse Ruderman 2007-05-08 00:15:26 PDT
Invalid per https://bugzilla.mozilla.org/show_bug.cgi?id=376052.