2024-01-01 14:58:21 -05:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2020-12-13 19:45:53 +01:00
|
|
|
|
2023-11-12 20:52:59 -08:00
|
|
|
pub mod bootstrap;
|
2020-12-13 19:45:53 +01:00
|
|
|
pub mod fs_events;
|
2021-07-12 12:44:49 +02:00
|
|
|
pub mod http;
|
2020-12-13 19:45:53 +01:00
|
|
|
pub mod os;
|
|
|
|
pub mod permissions;
|
|
|
|
pub mod process;
|
|
|
|
pub mod runtime;
|
|
|
|
pub mod signal;
|
|
|
|
pub mod tty;
|
|
|
|
pub mod web_worker;
|
|
|
|
pub mod worker_host;
|
|
|
|
|
|
|
|
use deno_core::OpState;
|
|
|
|
|
|
|
|
/// Helper for checking unstable features. Used for sync ops.
|
2023-10-12 17:55:50 +02:00
|
|
|
pub fn check_unstable(state: &OpState, feature: &str, api_name: &str) {
|
2024-09-17 02:13:34 +01:00
|
|
|
state.feature_checker.check_or_exit(feature, api_name);
|
2020-12-13 19:45:53 +01:00
|
|
|
}
|
2021-08-16 14:29:54 +02:00
|
|
|
|
|
|
|
pub struct TestingFeaturesEnabled(pub bool);
|