Oh? Not sure why I thought that was the case. If your interpretation is correct, valueOf should probably be removed completely. If there’s no valueOf defined, Javascript will use toString.
> On Jan 17, 2022, at 10:43 PM, Greg Dove <greg.d...@gmail.com> wrote: > > Does not equal 10 (Number) - it equals 19 (Number), because xml is always > toString'ed by default I think. But in Royale there is an attempt to make > it behave like a numeric value if it can represent one. According to the > spec (11.4.1) "When numeric addition of XML objects is desired, the > operands shall be explicitly coerced to Numbers" (so: it should not > implicitly convert to a numeric value)