- From: Marcos Caceres <w3c@marcosc.com>
- Date: Thu, 15 Nov 2012 16:03:20 +0000
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
On Thursday, November 15, 2012 at 3:09 PM, Boris Zbarsky wrote:
> > Worst case, you end up with something like:
> >
> > try{
> > fooObj.bar = value;
> > //did it really assign the value?
> > if(fooObj.bar === value){
>
>
>
> Why do you need that if check? The whole point of [strict] is that if
> it didn't throw, it assigned the value.
Yeah, I realized that after I sent it… but assume Version 0 works like WebIDL does today. So, a value may or may not be set (as it may fall back to a default), so you need to confirm that it actually worked. If Version 1 switches to [strict], then you need the above check to catch Version 0, no?
--
Marcos Caceres
Received on Thursday, 15 November 2012 16:03:50 UTC