Closed Bug 553106 Opened 16 years ago Closed 10 years ago

Allow "duck typing" on COWs

Categories

(Core :: XPConnect, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mrbkap, Unassigned)

Details

Attachments

(1 file)

It would be useful to allow content to do duck typing or capabilities type tests: if (cow.feature) { ...cow.feature()... } right now, the test throws... These properties should return undefined and not be "in" the cow (i.e. "nonExposedFeature in cow" should return false).
Attached file testcase
This testcase should do toSource.
All the COWs went to the slaughterhouse.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: