This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22665 - Wrong example for [TreatNonCallableAsNull]
Summary: Wrong example for [TreatNonCallableAsNull]
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard: [v1]
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-14 12:44 UTC by Chris Dumez
Modified: 2016-10-22 16:02 UTC (History)
3 users (show)

See Also:


Attachments

Description Chris Dumez 2013-07-14 12:44:07 UTC
In the section for [TreatNonCallableAsNull]*, it looks to me that the example is wrong and that the handler1 / handler2 are reversed.

handler1 has type 'OccurrenceHandler?', which has [TreatNonCallableAsNull] extended attribute so it should not throw when 123 is assigned to it. However, the handler2 case should probably throw.


* http://dev.w3.org/2006/webapi/WebIDL/#TreatNonCallableAsNull
Comment 1 Domenic Denicola 2016-10-22 16:02:23 UTC
This appears to have been fixed, at some point during or after the rename to [TreatNonObjectAsNull]. tobie.langel@gmail.com