xliu
0a9c6ad31e
fix EcmaString::EqualToSplicedString
...
Description
1. The developer reported that the corresponding attribute could not
be obtained through the key value.
2. There is a bug in the comparison logic in ecmastring::
equaltospilledstring function, which leads to unpredictable results.
Modify the comparison logic to make the spliced two strings equal to
the compared string.
Issue:
#I52EB0: fix EcmaString::EqualToSplicedString
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I2186c4ffc6084b05ea2fe64b41a76c648103e408
2022-04-13 15:18:33 +08:00
zhaozhibo
f9eb8d2051
fix code warning for codeDex
...
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-04-12 14:27:50 +08:00
wengchangcheng
99934b9037
add Wextra and Werror in gn args
...
1. add -Wextra and -Werror to check code format error
2. modify all compiler error
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4ZDQE
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If5fdd1980494269b4c06bf1bb38a8eba7952adea
2022-03-24 21:45:19 +08:00
feng
e0f34edb44
Performance optimization for String table
...
concat string table
issue:https://e.gitee.com/open_harmony/dashboard?issue=I4SASV
Signed-off-by: feng <yingguofeng@huawei.com>
Change-Id: I1ff7f15246c8d367c8c8a38f0effed9e6ace2bed
2022-02-15 14:23:43 +08:00
zhaozhibo
6669d22e37
add 'utf8Len' parameter for 'CanBeCompressed()'
...
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-18 14:57:19 +08:00
zhaozhibo
2c7184da6d
add 'utf8Len' parameter for 'CanBeCompressed()'
...
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-17 14:22:36 +08:00
zhaozhibo
6905d8747c
add 'utf8Len' parameter for 'CanBeCompressed()'
...
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-17 12:54:04 +08:00
zhaozhibo
bfc8939de4
add 'utf8Len' parameter for 'CanBeCompressed()'
...
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-17 12:30:13 +08:00
zhaozhibo
bd53e23a1a
fix conversion function bug in 'utf_helper' when utf8 characters do not end with '\0' and reconstruct ecmastring
...
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-01-13 12:02:17 +08:00
zhangyukun
a97747fe18
Description:sync from code from wgr_master to ohos
...
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
Change-Id: Ic66a9e649de8c0ce530483296fe323b8f50621fb
2021-12-21 09:36:03 +08:00
Gongyuhang
91bca28537
add the brackets
...
Signed-off-by: Gongyuhang <517563583@qq.com>
2021-10-15 17:49:39 +08:00
Gongyuhang
cf2f40cf77
restore ecma_string_test.cpp and fix ecma_string.cpp
...
Signed-off-by: Gongyuhang <517563583@qq.com>
2021-10-11 20:14:30 +08:00
zhangyukun
7ffcc4b20f
Sync js_runtime to openharmony
...
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan
86cfe52253
add ark js_runtime
...
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00