mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-06 23:54:03 +00:00
fix sendable code check.
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAMZ67 Signed-off-by: zhouwenxuan <zhouwenxuan1@huawei.com> Change-Id: I5d36affcd9791dd39d08a7a8115388ea5dd5f448
This commit is contained in:
parent
3614686182
commit
46c7bca9bb
@ -31,6 +31,7 @@ void JSSendableArrayBuffer::CopyDataPointBytes(void *toBuf, void *fromBuf, int32
|
||||
{
|
||||
auto *from = static_cast<uint8_t *>(fromBuf);
|
||||
auto *to = static_cast<uint8_t *>(toBuf);
|
||||
ASSERT(from != nullptr && to != nullptr);
|
||||
if (memcpy_s(to, count, from + fromIndex, count) != EOK) { // NOLINT
|
||||
LOG_FULL(FATAL) << "memcpy_s failed";
|
||||
UNREACHABLE();
|
||||
|
@ -40,7 +40,7 @@ JSTaggedValue JSSharedMapIterator::NextInternal(JSThread *thread, JSHandle<JSTag
|
||||
JSHandle<JSTaggedValue> undefinedHandle(thread, JSTaggedValue::Undefined());
|
||||
if (iter->GetIteratedMap().IsUndefined()) {
|
||||
return JSIterator::CreateIterResultObject(thread, undefinedHandle, true).GetTaggedValue();
|
||||
};
|
||||
}
|
||||
JSHandle<JSSharedMap> iteratedMap(thread, iter->GetIteratedMap());
|
||||
[[maybe_unused]] ConcurrentApiScope<JSSharedMap> scope(thread, JSHandle<JSTaggedValue>::Cast(iteratedMap));
|
||||
RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, JSTaggedValue::Exception());
|
||||
|
Loading…
Reference in New Issue
Block a user