Bug 59289 - Assigning to function identifier under strict should throw
Summary: Assigning to function identifier under strict should throw
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Normal
Assignee: Oliver Hunt
URL: http://kangax.github.com/es5-compat-t...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-23 19:59 PDT by kangax
Modified: 2011-05-01 22:25 PDT (History)
1 user (show)

See Also:


Attachments
Patch (6.25 KB, patch)
2011-05-01 19:42 PDT, Oliver Hunt
barraclough: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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! :)