Bug 59289 - Assigning to function identifier under strict should throw
: Assigning to function identifier under strict should throw
Status: RESOLVED FIXED
: WebKit
JavaScriptCore
: 528+ (Nightly build)
: Macintosh Intel Mac OS X 10.6
: P2 Normal
Assigned To:
: http://kangax.github.com/es5-compat-t...
:
:
:
  Show dependency treegraph
 
Reported: 2011-04-23 19:59 PST by
Modified: 2011-05-01 22:25 PST (History)


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


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2011-04-23 19:59:00 PST
`(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 From 2011-05-01 19:42:10 PST -------
Created an attachment (id=91873) [details]
Patch
------- Comment #2 From 2011-05-01 19:58:10 PST -------
Committed r85454: <http://trac.webkit.org/changeset/85454>
------- Comment #3 From 2011-05-01 22:25:48 PST -------
yay! :)