Skip to content

Commit

Permalink
fix: don't pass refs to DELETE
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Apr 22, 2024
1 parent d11b720 commit 80ae358
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/fast_api.rs
Expand Up @@ -13,14 +13,14 @@ extern "C" {
len: usize,
tys: *const CTypeSequenceInfo,
) -> *mut CTypeInfo;
fn v8__CTypeInfo__DELETE(this: &mut CTypeInfo);
fn v8__CTypeInfo__DELETE(this: *mut CTypeInfo);
fn v8__CFunctionInfo__New(
return_info: *const CTypeInfo,
args_len: usize,
args_info: *const CTypeInfo,
repr: Int64Representation,
) -> *mut CFunctionInfo;
fn v8__CFunctionInfo__DELETE(this: &mut CFunctionInfo);
fn v8__CFunctionInfo__DELETE(this: *mut CFunctionInfo);
}

#[repr(C)]
Expand Down
8 changes: 4 additions & 4 deletions src/inspector.rs
Expand Up @@ -74,7 +74,7 @@ extern "C" {
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(
session: *mut V8InspectorSession,
message: StringView,
Expand All @@ -88,13 +88,13 @@ extern "C" {
method: StringView,
) -> 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__create(
source: StringView,
) -> UniquePtr<StringBuffer>;

fn v8_inspector__V8Inspector__DELETE(this: &mut V8Inspector);
fn v8_inspector__V8Inspector__DELETE(this: *mut V8Inspector);
fn v8_inspector__V8Inspector__create(
isolate: *mut Isolate,
client: *mut V8InspectorClient,
Expand Down Expand Up @@ -133,7 +133,7 @@ extern "C" {
this: *mut V8Inspector,
stack_trace: *const StackTrace,
) -> *mut V8StackTrace;
fn v8_inspector__V8StackTrace__DELETE(this: &mut V8StackTrace);
fn v8_inspector__V8StackTrace__DELETE(this: *mut V8StackTrace);
}

#[no_mangle]
Expand Down

0 comments on commit 80ae358

Please sign in to comment.