Fix passing argument bug for NewJsIntlNativePointer function

Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
This commit is contained in:
panzhenyu1 2022-01-07 11:06:45 +08:00
parent 59bd356d33
commit a6d993bf0c

View File

@ -78,7 +78,7 @@ void ObjectFactory::NewJSIntlIcuData(const JSHandle<T> &obj, const S &icu, const
native->ResetExternalPointer(icuPoint);
return;
}
JSHandle<JSNativePointer> pointer(thread_, NewJSNativePointer(icuPoint, callback, vm_).GetTaggedValue());
JSHandle<JSNativePointer> pointer(thread_, NewJSNativePointer(icuPoint, callback, nullptr).GetTaggedValue());
obj->SetIcuField(thread_, pointer.GetTaggedValue());
// push uint8_t* to ecma array_data_list
vm_->PushToArrayDataList(*pointer);