W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > November 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-webapps-bugzilla@w3.org
Message-ID: <bug-19988-2532-rtpSO3ZF8f@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 the QA Contact for the bug.
Received on Tuesday, 27 November 2012 01:39:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 November 2012 01:39:32 GMT