mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-07-20 23:00:29 -04:00
restore ecma_string_test.cpp and fix ecma_string.cpp
Signed-off-by: Gongyuhang <517563583@qq.com>
This commit is contained in:
@@ -415,7 +415,7 @@ uint32_t EcmaString::ComputeHashcode() const
|
||||
hash = ComputeHashForData(GetDataUtf16(), GetLength());
|
||||
}
|
||||
} else {
|
||||
ASSERT(static_cast<size_t>(GetLength()) > (std::numeric_limits<size_t>::max() >> 1U));
|
||||
ASSERT(static_cast<size_t>(GetLength()) < std::numeric_limits<size_t>::max() >> 1U);
|
||||
hash = ComputeHashForData(GetDataUtf16(), GetLength());
|
||||
}
|
||||
return hash;
|
||||
|
||||
Reference in New Issue
Block a user