summaryrefslogtreecommitdiff
path: root/runtime/ops/mod.rs
blob: cdafd61ecd4321c6bf902b7827caefc20676a6e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.

pub mod fs_events;
pub mod http;
pub mod os;
pub mod permissions;
pub mod process;
pub mod runtime;
pub mod signal;
pub mod tty;
mod utils;
pub mod web_worker;
pub mod worker_host;

use deno_core::OpState;

/// Helper for checking unstable features. Used for sync ops.
pub fn check_unstable(state: &OpState, api_name: &str) {
  state
    .feature_checker
    .check_legacy_unstable_or_exit(api_name);
}

pub struct TestingFeaturesEnabled(pub bool);