Closed
Bug 729299
Opened 13 years ago
Closed 13 years ago
JS_Enumerate fails to enumerate properties of a "new Error()" object
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 724768
People
(Reporter: soubok, Unassigned)
Details
var err = new Error();
for ( var p in err ) {
//err.hasOwnProperty(p);
}
...
JS_Enumerate(cx, JSVAL_TO_OBJECT(the_err_value))->length == 0
However if err.hasOwnProperty(p) is uncommented, ->length is 2 (fileName, lineNumber).
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•