Open bzbarsky opened 7 years ago
@bzbarsky What is the preferred way? Constructing ES number value from a unrestricted double
or does WebIDL or another spec provide means to compare unrestricted double
s for "equality"?
I have no idea, actually. Constructing ES number values is probably simple enough...
The ES spec has to deal with this sort of thing as well, because it draws a similar distinction between abstract numbers and ES number objects. @littledan, @bterlson, any advice?
(Tagging them in because I think I recall them being involved with some recent edits to make the ES spec more specific in this regard.)
https://drafts.fxtf.org/geometry/#matrix-validate-and-fixup says things like:
but
a
andm11
are bothunrestricted double
IDL members, so this is passing two doubles to a function that expects two ES values. It should either pass two Number values constructed froma
andm11
or it should be using something defined to work on doubles.