> I'll go ahead with doing WHATWG-compliant "with replacement" when
> trying to atomize invalid UTF-8 (which shouldn't happen anyway).

For code archeologists: Don't believe what I said upthread about
non-atomic empty-string atoms. My code reading was evidently wrong
considering that we have test case that shows that the atom returned
for invalid UTF-8 is *the* empty-string atom.

Anyway, currently we assert in debug builds if invalid UTF-8 is
atomized. I'm going to keep it that way but in release builds I'm
going to return an atom that doesn't collapse garbage into nothingness
but into U+FFFD.

-- 
Henri Sivonen
hsivo...@hsivonen.fi
https://hsivonen.fi/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to