Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Jan 2, 2025
1 parent db72251 commit 9ddf989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/regexp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extern "C" {
fn v8__RegExp__New(
context: *const Context,
pattern: *const String,
flags: *const RegExpCreationFlags,
flags: RegExpCreationFlags,
) -> *const RegExp;
fn v8__RegExp__Exec(
this: *const RegExp,
Expand All @@ -45,7 +45,7 @@ impl RegExp {
) -> Option<Local<'s, RegExp>> {
unsafe {
scope.cast_local(|sd| {
v8__RegExp__New(sd.get_current_context(), &*pattern, &*flags)
v8__RegExp__New(sd.get_current_context(), &*pattern, flags)
})
}
}
Expand Down

0 comments on commit 9ddf989

Please sign in to comment.