mirror of
https://github.com/openharmony/ace_napi.git
synced 2026-07-22 09:15:27 -04:00
convert js value to native value
Signed-off-by: zhanghaibo <zhanghaibo0@huawei.com>
This commit is contained in:
@@ -55,7 +55,7 @@ uint32_t QuickJSNativeReference::Unref()
|
||||
|
||||
NativeValue* QuickJSNativeReference::Get()
|
||||
{
|
||||
return new QuickJSNativeValue(engine_, JS_DupValue(engine_->GetContext(), value_));
|
||||
return QuickJSNativeEngine::JSValueToNativeValue(engine_, JS_DupValue(engine_->GetContext(), value_));
|
||||
}
|
||||
|
||||
QuickJSNativeReference::operator NativeValue*()
|
||||
|
||||
Reference in New Issue
Block a user