mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-07-19 19:43:48 -04:00
optimize primitive type ACCESSORS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
This commit is contained in:
@@ -30,7 +30,7 @@ JSTaggedValue JSIterator::IteratorCloseAndReturn(JSThread *thread, const JSHandl
|
||||
ASSERT(thread->HasPendingException());
|
||||
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
|
||||
JSTaggedValue exception = thread->GetException();
|
||||
JSHandle<JSTaggedValue> record = JSHandle<JSTaggedValue>(factory->NewCompletionRecord(CompletionRecord::THROW,
|
||||
JSHandle<JSTaggedValue> record = JSHandle<JSTaggedValue>(factory->NewCompletionRecord(CompletionRecordType::THROW,
|
||||
JSHandle<JSTaggedValue>(thread, exception)));
|
||||
JSHandle<JSTaggedValue> result = JSIterator::IteratorClose(thread, iter, record);
|
||||
if (result->IsCompletionRecord()) {
|
||||
|
||||
Reference in New Issue
Block a user