0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-01-11 16:42:32 -05:00

fix: don't pass refs to DELETE (#1471)

This commit is contained in:
Matt Mastracci 2024-05-03 17:07:20 -06:00 committed by GitHub
parent d11b720654
commit 3324d5de6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -13,14 +13,14 @@ extern "C" {
len: usize, len: usize,
tys: *const CTypeSequenceInfo, tys: *const CTypeSequenceInfo,
) -> *mut CTypeInfo; ) -> *mut CTypeInfo;
fn v8__CTypeInfo__DELETE(this: &mut CTypeInfo); fn v8__CTypeInfo__DELETE(this: *mut CTypeInfo);
fn v8__CFunctionInfo__New( fn v8__CFunctionInfo__New(
return_info: *const CTypeInfo, return_info: *const CTypeInfo,
args_len: usize, args_len: usize,
args_info: *const CTypeInfo, args_info: *const CTypeInfo,
repr: Int64Representation, repr: Int64Representation,
) -> *mut CFunctionInfo; ) -> *mut CFunctionInfo;
fn v8__CFunctionInfo__DELETE(this: &mut CFunctionInfo); fn v8__CFunctionInfo__DELETE(this: *mut CFunctionInfo);
} }
#[repr(C)] #[repr(C)]

View file

@ -74,7 +74,7 @@ extern "C" {
stack_trace: &mut V8StackTrace, stack_trace: &mut V8StackTrace,
); );
fn v8_inspector__V8InspectorSession__DELETE(this: &mut V8InspectorSession); fn v8_inspector__V8InspectorSession__DELETE(this: *mut V8InspectorSession);
fn v8_inspector__V8InspectorSession__dispatchProtocolMessage( fn v8_inspector__V8InspectorSession__dispatchProtocolMessage(
session: *mut V8InspectorSession, session: *mut V8InspectorSession,
message: StringView, message: StringView,
@ -88,13 +88,13 @@ extern "C" {
method: StringView, method: StringView,
) -> bool; ) -> bool;
fn v8_inspector__StringBuffer__DELETE(this: &mut StringBuffer); fn v8_inspector__StringBuffer__DELETE(this: *mut StringBuffer);
fn v8_inspector__StringBuffer__string(this: &StringBuffer) -> StringView; fn v8_inspector__StringBuffer__string(this: &StringBuffer) -> StringView;
fn v8_inspector__StringBuffer__create( fn v8_inspector__StringBuffer__create(
source: StringView, source: StringView,
) -> UniquePtr<StringBuffer>; ) -> UniquePtr<StringBuffer>;
fn v8_inspector__V8Inspector__DELETE(this: &mut V8Inspector); fn v8_inspector__V8Inspector__DELETE(this: *mut V8Inspector);
fn v8_inspector__V8Inspector__create( fn v8_inspector__V8Inspector__create(
isolate: *mut Isolate, isolate: *mut Isolate,
client: *mut V8InspectorClient, client: *mut V8InspectorClient,
@ -133,7 +133,7 @@ extern "C" {
this: *mut V8Inspector, this: *mut V8Inspector,
stack_trace: *const StackTrace, stack_trace: *const StackTrace,
) -> *mut V8StackTrace; ) -> *mut V8StackTrace;
fn v8_inspector__V8StackTrace__DELETE(this: &mut V8StackTrace); fn v8_inspector__V8StackTrace__DELETE(this: *mut V8StackTrace);
} }
#[no_mangle] #[no_mangle]