diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-07-22 19:06:32 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-22 19:06:32 +0530 |
| commit | 4db650ddd57b85475d71c0b9fc84d37becab9d6a (patch) | |
| tree | e32602ab92d4c117dbbd72ea9c7436964466187d /ext | |
| parent | 03dc3b8972f460e40d0b75fc3207cae9fe4f60da (diff) | |
Revert "feat(ops): V8 Fast Calls (#15122)" (#15276)
This reverts commit 03dc3b8972f460e40d0b75fc3207cae9fe4f60da.
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/net/lib.rs | 4 | ||||
| -rw-r--r-- | ext/web/02_timers.js | 4 | ||||
| -rw-r--r-- | ext/web/timers.rs | 2 |
3 files changed, 3 insertions, 7 deletions
diff --git a/ext/net/lib.rs b/ext/net/lib.rs index 249170060..c95348020 100644 --- a/ext/net/lib.rs +++ b/ext/net/lib.rs @@ -81,8 +81,6 @@ pub fn init<P: NetPermissions + 'static>( unstable: bool, unsafely_ignore_certificate_errors: Option<Vec<String>>, ) -> Extension { - let mut ops = ops::init::<P>(); - ops.extend(ops_tls::init::<P>()); Extension::builder() .js(include_js_files!( prefix "deno:ext/net", @@ -90,7 +88,7 @@ pub fn init<P: NetPermissions + 'static>( "02_tls.js", "04_net_unstable.js", )) - .ops(ops) + .ops([&ops::init::<P>()[..], &ops_tls::init::<P>()[..]].concat()) .state(move |state| { state.put(DefaultTlsOptions { root_cert_store: root_cert_store.clone(), diff --git a/ext/web/02_timers.js b/ext/web/02_timers.js index 1a456f9bb..a4ce33a18 100644 --- a/ext/web/02_timers.js +++ b/ext/web/02_timers.js @@ -23,11 +23,9 @@ const { webidl } = window.__bootstrap; const { reportException } = window.__bootstrap.event; const { assert } = window.__bootstrap.infra; - // deno-lint-ignore camelcase - const { op_now } = Deno.core.ops; function opNow() { - return op_now.call(); + return core.opSync("op_now"); } // --------------------------------------------------------------------------- diff --git a/ext/web/timers.rs b/ext/web/timers.rs index ebef717ba..f57baa559 100644 --- a/ext/web/timers.rs +++ b/ext/web/timers.rs @@ -28,7 +28,7 @@ pub type StartTime = Instant; // If the High precision flag is not set, the // nanoseconds are rounded on 2ms. #[op] -pub fn op_now<TP>(state: &mut OpState) -> f64 +pub fn op_now<TP>(state: &mut OpState, _argument: ()) -> f64 where TP: TimersPermission + 'static, { |
