Closed
Bug 811853
Opened 12 years ago
Closed 12 years ago
Self-hosted functions are enumerable
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mozillabugs, Unassigned)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.34 KB,
text/plain
|
Details |
To reproduce, build with the attached patch, use the js shell, and run:
js> for (var p in Array.prototype) print(p)
With current sources, this prints "enumerable", the name of the self-hosted function provided by the patch.
Self-hosted functions, being built-in functions, generally must not be enumerable - see the last paragraph of ES 5.1, clause 15:
http://ecma-international.org/ecma-262/5.1/#sec-15
This regression was introduced somewhere between mozilla-central revisions a76c1f4c4112 (2012-10-17) and dd68409d7810 (2012-10-13).
Reporter | ||
Comment 1•12 years ago
|
||
The last date in the description should be 2012-11-13.
Blocks: 769872
Comment 2•12 years ago
|
||
This is probably caused by bug 807228, and should be fixed again once bug 791850 lands.
Depends on: 791850
Comment 3•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Keywords: regression
Summary: Regression: Self-hosted functions are enumerable → Self-hosted functions are enumerable
You need to log in
before you can comment on or make changes to this bug.
Description
•