Inconsistent behavior
Georgezxh opened this issue · comments
Georgezxh commented
Description
Other js engines can print correctly while jerry throws a type error.
JerryScript revision
2.4.0
Build platform
ubuntu20.04
Test case
result = String.prototype.normalize.call(String.prototype.padStart.call(0, 5, '-'));
print(result);
Output
Unhandled exception: TypeError
Expected behavior
----0
Máté Tokodi commented
Currently String.prototype.normalize
is not implemented because it would require the use of libICU
or a similar library for proper unicode and locale support, which would increase the size of the jerryscript binary substantially, and as such it will not be done.
Zoltan Herczeg commented
Adding an icu would increase the library size too much.