summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-07-05 05:17:53 -0700
committerGitHub <noreply@github.com>2024-07-05 17:47:53 +0530
commit233e5f6feae62e2ddc4d4046479759bd0a09b3aa (patch)
treec7879ebaa3e8d30748ff196c5e46ddb0909fd81e /runtime/worker.rs
parent08e5606c3400d3a993c0ce6748901c56fc3db35b (diff)
chore: rename `__runtime_js_source` to `hmr` (#24442)
Saves some keystrokes and easy to remember ``` cargo b --features hmr ```
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 4e16afeeb..9207de227 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -454,8 +454,11 @@ impl MainWorker {
ops::web_worker::deno_web_worker::init_ops_and_esm().disable(),
];
- #[cfg(__runtime_js_sources)]
- assert!(cfg!(not(feature = "only_snapshotted_js_sources")), "'__runtime_js_sources' is incompatible with 'only_snapshotted_js_sources'.");
+ #[cfg(hmr)]
+ assert!(
+ cfg!(not(feature = "only_snapshotted_js_sources")),
+ "'hmr' is incompatible with 'only_snapshotted_js_sources'."
+ );
for extension in &mut extensions {
if options.startup_snapshot.is_some() {