Closed Bug 1119491 Opened 10 years ago Closed 10 years ago

hasOwnProperty returns false for unset class properties

Categories

(Firefox Graveyard :: Shumway, defect)

defect
Not set
normal

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.
Blocks: shumway-jw1
Blocks: 1119488
Assignee: nobody → mbebenita
Assignee: mbebenita → schneider
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.