Description
1. Fix UT test
2. Fix mem_map_allocator
3. Fix json parser
Issue:
#I55S8H:Fix UT test and json parser
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I1e5107a1f119eb1422a40f2275d961b366dda46b
Description
1. There are many kinds of interfaces to construct ecmastring from objectfactory
in the virtual machine, and the name is not clear, so it is complex to use;
2. Some of the unchecked interfaces are prone to errors during use. If there is
no compression where compression is required, unpredictable errors will occur.
Issue:
#I4ZL7X: ObjectFactory New Ecmastring Rectification
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I856f4e2e1df62823d928d738fa35affa97dbd3ed
1. In Json stringify, convert \u0000 to unique identifier C080 for processing.
By identifying C080, return '"\\u0000"'
2. In Json parse, fix the bug that cannot output strings smaller than 0x20.
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4V4BL
Signed-off-by: xujie <xujie101@huawei.com>
Change-Id: Ia6114427d06396476a316da2d3c87c3aab8324c4