Bug 59289 - Assigning to function identifier under strict should throw
: Assigning to function identifier under strict should throw
Status: RESOLVED FIXED
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore
: 528+ (Nightly build)
: Macintosh Intel Mac OS X 10.6
: P2 Normal
Assigned To: Oliver Hunt
http://kangax.github.com/es5-compat-t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
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! :)