Bug 11703 - JavaScript does not allow function names in function expressions
Summary: JavaScript does not allow function names in function expressions
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 419.x
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-28 01:43 PST by Carsten Bormann
Modified: 2006-11-28 02:39 PST (History)
1 user (show)

See Also:


Attachments
test case (causes a JavaScript parse error) (484 bytes, application/xhtml+xml)
2006-11-28 01:47 PST, Carsten Bormann
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Bormann 2006-11-28 01:43:10 PST
// See ECMA-262, clause 13

  alert(function anameisallowedhere(){});

// This is not accepted by Safari Version 2.0.4 (419.3):
// SyntaxError - Parse error
// file:///tmp/safari-functionexpression-bug.html
Comment 1 Carsten Bormann 2006-11-28 01:47:01 PST
Created attachment 11651 [details]
test case (causes a JavaScript parse error)
Comment 2 Mark Rowe (bdash) 2006-11-28 02:39:58 PST
This has been fixed for some time in the development builds.