deno/ops/tests/01_fast_callback_options.rs
2022-09-01 15:53:06 +05:30

11 lines
231 B
Rust

use deno_core::v8::fast_api::FastApiCallbackOptions;
use deno_ops::op;
#[op(fast)]
fn op_fallback(options: Option<&mut FastApiCallbackOptions>) {
if let Some(options) = options {
options.fallback = true;
}
}
fn main() {}