Bug 59289

Summary: Assigning to function identifier under strict should throw
Product: WebKit Reporter: kangax <kangax>
Component: JavaScriptCoreAssignee: Oliver Hunt <oliver>
Status: RESOLVED FIXED    
Severity: Normal CC: oliver
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.6   
URL: http://kangax.github.com/es5-compat-table/strict-mode/
Attachments:
Description Flags
Patch barraclough: review+

Description kangax 2011-04-23 19:59:00 PDT
`(function f() { f = 123; })()` should be a TypeError under strict mode but currently isn't. FF4 and IE10 both comply on this one.
Comment 1 Oliver Hunt 2011-05-01 19:42:10 PDT
Created attachment 91873 [details]
Patch
Comment 2 Oliver Hunt 2011-05-01 19:58:10 PDT
Committed r85454: <http://trac.webkit.org/changeset/85454>
Comment 3 kangax 2011-05-01 22:25:48 PDT
yay! :)