[Webkit-unassigned] [Bug 48689] New: ES5 Strict mode: `arguments' identifier in strict mode is immutable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 29 15:23:58 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=48689

           Summary: ES5 Strict mode: `arguments' identifier in strict mode
                    is immutable
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: asen.bozhilov at gmail.com


/**
 * 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');
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list