Bug 48689

Summary: ES5 Strict mode: `arguments' identifier in strict mode is immutable
Product: WebKit Reporter: Asen Bozhilov <asen.bozhilov>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: oliver
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

Asen Bozhilov
Reported 2010-10-29 15:23:58 PDT
/** * For strict mode functions, if an arguments object is created the binding of the local identifier * arguments to the arguments object is immutable and hence may not be the target of an * assignment expression. (10.5). */ var testDesc = 'In function body assigning value of arguments must produce an Error: '; function F(arg, arg1, arg2) { 'use strict'; arguments = false; }; try { F(1, 2, 3); util.printLine(testDesc + 'FALSE'); } catch (e) { util.printLine(testDesc + 'TRUE'); }
Attachments
Asen Bozhilov
Comment 1 2010-11-01 07:56:23 PDT
Great work WebKit! I've made 53 tests. There is only one fail and one test which cannot be done with current state of WebKit. You can see the test cases: http://github.com/abozhilov/strict-tester-
Asen Bozhilov
Comment 2 2010-11-01 07:58:00 PDT
Oliver Hunt
Comment 3 2011-05-01 22:21:58 PDT
I fixed this some time ago due to another report
Note You need to log in before you can comment on or make changes to this bug.