Closed
Bug 1119491
Opened 10 years ago
Closed 10 years ago
hasOwnProperty returns false for unset class properties
Categories
(Firefox Graveyard :: Shumway, defect)
Firefox Graveyard
Shumway
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: tschneider, Assigned: tschneider)
References
Details
hasOwnProperty is returning false for class properties that were not explicitly set after creating an instance. Example:
package {
class E {
public var a:Number;
}
(function () {
var e = new E();
trace('New instance of "E" has own property "a": ' + e.hasOwnProperty('a'));
})();
}
This behavior is different to JavaScript, where hasOwnProperty('a') should only return true if the property was set on the instance itself and not just being defined somewhere on the prototype chain.
Assignee | ||
Updated•10 years ago
|
Blocks: shumway-jw1
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → mbebenita
Assignee | ||
Updated•10 years ago
|
Assignee: mbebenita → schneider
Assignee | ||
Comment 1•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•