diff options
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r-- | runtime/web_worker.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index 07a955efb..08de53216 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -518,8 +518,11 @@ impl WebWorker { ops::web_worker::deno_web_worker::init_ops_and_esm(), ]; - #[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() { |