Jonas Sicking: > However it appears that that extended attribute is not present in > newer versions of the WebIDL spec. Cameron, is this something that > is planned to be brought back? It seems like a useful feature to > avoid having to define in prose this rather common requirement. We > should also define which exception should be thrown if such a [NoNull] > requirement was violated.
I plan to make object types non-nullable by default, and to allow null you would write “MyInterface?”. http://www.w3.org/Bugs/Public/show_bug.cgi?id=10640. I will most likely make passing in null for a non-nullable object type result in a TypeError being thrown. -- Cameron McCormack ≝ http://mcc.id.au/