mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-07 16:13:49 +00:00
!8960 fix sendable code check.
Merge pull request !8960 from zhou-wenxuan/sendable_code_check
This commit is contained in:
commit
c4fad9e846
@ -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