WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
48689
ES5 Strict mode: `arguments' identifier in strict mode is immutable
https://bugs.webkit.org/show_bug.cgi?id=48689
Summary
ES5 Strict mode: `arguments' identifier in strict mode is immutable
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
Add attachment
proposed patch, testcase, etc.
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
The proper url is:
http://github.com/abozhilov/strict-tester-/tree/
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.
Top of Page
Format For Printing
XML
Clone This Bug