[Webkit-unassigned] [Bug 28771] New: Error properties of the Global Object are missing the DontEnum attribute
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 27 05:58:56 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=28771
Summary: Error properties of the Global Object are missing the
DontEnum attribute
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: khansen at trolltech.com
The properties "EvalError", "RangeError", "ReferenceError", "SyntaxError",
"TypeError", "URIError" don't have the DontEnum attribute, and consequently
they show up in a for..in statement. According to ECMA-262, chapter 15, these
properties should not be enumerable ("Every other property described in this
section has the attribute { DontEnum } (and no others) unless otherwise
specified").
Curiously, the "Error" property does have the attribute, but the more specific
errors do not.
--
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