W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

[Bug 19988] add a [LenientFloat] to mean "ignore IDL attribute assignment or method call if a non-finite float is passed"

From: <bugzilla@jessica.w3.org>
Date: Tue, 27 Nov 2012 01:39:30 +0000
To: public-script-coord@w3.org
Message-ID: <bug-19988-3890-2zvDGz02jG@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19988

--- Comment #4 from Boris Zbarsky <bzbarsky@mit.edu> ---
One other note.  There is an observable difference between the spec as written
right now and what Gecko is doing with [LenientFloat].  In particular, consider
this testcase:

  ctx.moveTo(NaN, { valueOf: { throw "HAHA"; } });

In Gecko's current implementation, and in the obvious way of defining
[LenientFloat], this call will be a no-op.  Per spec as written right now, this
call will throw, because the check for NaN on the first argument is done after
converting all the arguments.

I could probably change Gecko to do the thing current prose says to do in this
sort of edge case, but that would make it harder to optimize calls to such
methods from the JIT...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 27 November 2012 01:39:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:08 UTC