Closed Bug 652113 Opened 13 years ago Closed 13 years ago

JSON: final, or [[Extensible]] ??

Categories

(Tamarin Graveyard :: Library, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME
Q3 11 - Serrano

People

(Reporter: pnkfelix, Unassigned)

References

Details

Bill rightly asked in his review: > public final class JSON How does final modifier comport with [[Extensible]] === true (ecma 262 15.2)? I don't know the answer. When I find out, I'll post it here (along with any necessary fixup patches).
Blocks: 640711
Flags: flashplayer-qrb+
Flags: flashplayer-fixedlocally+
Flags: flashplayer-bug-
Priority: -- → P3
Target Milestone: --- → Q3 11 - Serrano
The [[Extensible]] concept of ES5 corresponds to the "dynamic" concept of AS3; "final" only restricts subclassing. All class objects in AS3 are dynamic, this is a fact of life. (A ClassDefinition defines both a class (non-static properties) and a metaclass (static properties), both of which can be instantiated; the metaclass is automatically instantiated as the class object. The metaclass is always dynamic, while the class is dynamic if the dynamic keyword is present on the class definition.) Thus the JSON object in AS3 will necessarily be [[Extensible]] in AS3 terms.
clearly we need a "WORKSFORLARS" bug resolution status option.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.