Use Uint32::NewFromUnsigned for unsigned values

This commit is contained in:
maikesiwu 2022-04-13 19:07:31 +00:00 committed by Marshall Greenblatt
parent e56440898e
commit 1f02c709c8
1 changed files with 1 additions and 1 deletions

View File

@ -1607,7 +1607,7 @@ v8::Local<v8::Value> CefV8ValueImpl::GetV8Value(bool should_persist) {
case TYPE_INT:
return v8::Int32::New(isolate_, int_value_);
case TYPE_UINT:
return v8::Uint32::New(isolate_, uint_value_);
return v8::Uint32::NewFromUnsigned(isolate_, uint_value_);
case TYPE_DOUBLE:
return v8::Number::New(isolate_, double_value_);
case TYPE_DATE: