diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-09-07 10:56:02 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 10:56:02 -0600 |
commit | 9226207c017666ef10712fa3fda35f773025ae03 (patch) | |
tree | 73e8ffc3c45000890fe1f103bc8dcae9d282d7b6 /ext/node/ops/v8.rs | |
parent | 3fc19dab47492e06043fc7add28e64693a4eb775 (diff) |
chore(ext/node): port some ops to op2 (#20400)
Diffstat (limited to 'ext/node/ops/v8.rs')
-rw-r--r-- | ext/node/ops/v8.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/node/ops/v8.rs b/ext/node/ops/v8.rs index 5307f7107..fdfc559d7 100644 --- a/ext/node/ops/v8.rs +++ b/ext/node/ops/v8.rs @@ -1,9 +1,10 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. use deno_core::op; +use deno_core::op2; use deno_core::v8; -#[op] -fn op_v8_cached_data_version_tag() -> u32 { +#[op2(fast)] +pub fn op_v8_cached_data_version_tag() -> u32 { v8::script_compiler::cached_data_version_tag() } |