diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-03-31 18:12:14 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 14:42:14 +0200 |
commit | b9a379093264da47368ea9665f685016fe35bfca (patch) | |
tree | af6fd2e56846b8d0a6d1d8d88c0bfcffbb34c4d6 /core/runtime.rs | |
parent | 0f41aff1d9f6c131ff69d6dd1dc053afb008a19d (diff) |
perf: `const` op declaration (#18288)
Co-authored-by: Levente Kurusa <lkurusa@kernelstuff.org>
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'core/runtime.rs')
-rw-r--r-- | core/runtime.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/runtime.rs b/core/runtime.rs index 787bac972..bfb4c45cc 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -793,8 +793,8 @@ impl JsRuntime { true => op, false => OpDecl { v8_fn_ptr: match op.is_async { - true => op_void_async::v8_fn_ptr(), - false => op_void_sync::v8_fn_ptr(), + true => op_void_async::v8_fn_ptr as _, + false => op_void_sync::v8_fn_ptr as _, }, ..op }, |