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+

kangax
Reported 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.
Attachments
Patch (6.25 KB, patch)
2011-05-01 19:42 PDT, Oliver Hunt
barraclough: review+
Oliver Hunt
Comment 1 2011-05-01 19:42:10 PDT
Oliver Hunt
Comment 2 2011-05-01 19:58:10 PDT
kangax
Comment 3 2011-05-01 22:25:48 PDT
yay! :)
Note You need to log in before you can comment on or make changes to this bug.