0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-27 01:29:19 -05:00

fix: don't use C++ references for possibly-null pointers (#1179)

Co-authored-by: Bert Belder <bertbelder@gmail.com>
This commit is contained in:
Bartek Iwańczuk 2023-02-01 16:41:52 +01:00 committed by GitHub
parent 84f1ec1571
commit 72216372d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1046,8 +1046,8 @@ bool v8__String__ContainsOnlyOneByte(const v8::String& self) {
}
const v8::Symbol* v8__Symbol__New(v8::Isolate* isolate,
const v8::String& description) {
return local_to_ptr(v8::Symbol::New(isolate, ptr_to_local(&description)));
const v8::String* description) {
return local_to_ptr(v8::Symbol::New(isolate, ptr_to_local(description)));
}
const v8::Symbol* v8__Symbol__For(v8::Isolate* isolate,
@ -1084,13 +1084,13 @@ const v8::Value* v8__Symbol__Description(const v8::Symbol& self,
}
const v8::Private* v8__Private__New(v8::Isolate* isolate,
const v8::String& name) {
return local_to_ptr(v8::Private::New(isolate, ptr_to_local(&name)));
const v8::String* name) {
return local_to_ptr(v8::Private::New(isolate, ptr_to_local(name)));
}
const v8::Private* v8__Private__ForApi(v8::Isolate* isolate,
const v8::String& name) {
return local_to_ptr(v8::Private::ForApi(isolate, ptr_to_local(&name)));
const v8::String* name) {
return local_to_ptr(v8::Private::ForApi(isolate, ptr_to_local(name)));
}
const v8::Value* v8__Private__Name(const v8::Private& self) {