Closed
Bug 155291
Opened 23 years ago
Closed 23 years ago
RegExp properties should be DontEnum
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
People
(Reporter: rogerl, Assigned: rogerl)
References
Details
(Keywords: js1.5)
Attachments
(1 file, 1 obsolete file)
610 bytes,
patch
|
khanson
:
review+
brendan
:
superreview+
|
Details | Diff | Splinter Review |
>for (i in /a/) print(i)
source
global
ignoreCase
lastIndex
multiline
These are supposed to be don't enum - 15.10.7.1 thru 15.10.7.5
Assignee | ||
Comment 1•23 years ago
|
||
Assignee | ||
Comment 2•23 years ago
|
||
Comment on attachment 89951 [details] [diff] [review] Test for undefined value as argv[0] D'oh. Wrong bug.
Attachment #89951 -
Attachment is obsolete: true
Assignee | ||
Comment 3•23 years ago
|
||
Test suite: Testcase ecma_2/RegExp/regexp-enumerate-001.js failed Bug Number 339403 Failure messages were: r = new RegExp(); e = new Array(); for ( p in r ) { e[e.length] = { property:p, value:r[p] }; e.length = 0 FAILED! expected: 5
Assignee | ||
Comment 4•23 years ago
|
||
Comment 5•23 years ago
|
||
cc'ing reviewers; adding js1.5 keyword; adding as dependency to bug 149801 -
Keywords: js1.5
Comment 6•23 years ago
|
||
Comment on attachment 89956 [details] [diff] [review] Remove enumerate flag from attribute. sr=brendan@mozilla.org. I don't think khanson or shaver are around just now (vacation and moving?), so maybe rginda will r= this. /be
Attachment #89956 -
Flags: superreview+
Comment 7•23 years ago
|
||
Comment on attachment 89956 [details] [diff] [review] Remove enumerate flag from attribute. r=khanson. I am not on vacation, just working remotely.
Attachment #89956 -
Flags: review+
Comment 8•23 years ago
|
||
Note rogerl is on vacation until July 8. I think we want this for the 1.0 branch, too, right?
Comment 9•23 years ago
|
||
Fixed in branch and trunk. /be
Comment 10•23 years ago
|
||
Verified FIXED. Testcase corrected: mozilla/js/tests/ecma_2/RegExp/regexp-enumerate-001.js This test now passes in the debug/optimized JS shells, and in the rhino/rhinoi shells, since Roger also made the fix there. Also fixed on MOZILLA_1_0_BRANCH; adding verified1.0.1 keyword -
Status: RESOLVED → VERIFIED
Keywords: verified1.0.1
Updated•20 years ago
|
Flags: testcase+
You need to log in
before you can comment on or make changes to this bug.
Description
•