General comment on ES 402 test suite (i18n)

Nebojša Ćirić cira at
Fri Sep 7 14:31:53 PDT 2012

I am making my implementation conform to the spec/tests as much as
possible. It's currently passing  (P) 106, failing (F) 6 and expecting (EF)
25 to fail.

3/25 EF are ICU problems, or ISO vs CLDR data differences. Bugs submitted,
waiting for update.
8/25 EF are from not implementing the i18n support for localeCompare and
similar functions (yet).
6/25 EF are from not being able to detect if the function was called as
constructor. V8 has a way of detecting that in C++ but there is no way to
do it in JavaScript alone - which I need. Any pointers?
6/25 EF are from not being able to delete prototype property from a
function. Any pointers?
2/25 EF are from hour12 field being requested from resolvedOptions() in
absence of hour field. Norbert said he would update this requirement in

1/6 F is from failing on de-DD locale test. I think we should remove this
test case (does spec say anything about deprecated locales support?).
2/6 F are from 1x.3_a.js tests, where 0 property of Array.prototype is
tainted. I don't know how to guard against this. Any pointers?
3/6 F are from invoking Constructor.prototype.format/compare directly. I'll
have to find a way to deal with these 3.

Nebojša Ćirić
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list